aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHolger Zickner <[email protected]>2004-08-19 20:49:56 +0000
committerHolger Zickner <[email protected]>2004-08-19 20:49:56 +0000
commit59a051a177d1a3730a332bee518dabb086349e96 (patch)
treec93ddce48f3fd0b647e8f170973e5beafa4c432f /src
parentb0a652c28dd045cd7b5376f1525175b7d5074926 (diff)
disable FocusTraversalKeys for the GLCanvas
Diffstat (limited to 'src')
-rw-r--r--src/jake2/render/JoglBase.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/jake2/render/JoglBase.java b/src/jake2/render/JoglBase.java
index 6a1b91b..f29b0d2 100644
--- a/src/jake2/render/JoglBase.java
+++ b/src/jake2/render/JoglBase.java
@@ -2,7 +2,7 @@
* JoglCommon.java
* Copyright (C) 2004
*
- * $Id: JoglBase.java,v 1.5 2004-07-16 12:12:29 cawe Exp $
+ * $Id: JoglBase.java,v 1.6 2004-08-19 20:49:56 hzi Exp $
*/
/*
Copyright (C) 1997-2001 Id Software, Inc.
@@ -192,9 +192,11 @@ public abstract class JoglBase implements GLEventListener {
GLimp_Shutdown();
window = new JFrame("Jake2");
-
GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities());
+ // we want keypressed events for TAB key
+ canvas.setFocusTraversalKeysEnabled(false);
+
// TODO Use debug pipeline
//canvas.setGL(new DebugGL(canvas.getGL()));
@@ -205,7 +207,6 @@ public abstract class JoglBase implements GLEventListener {
canvas.addGLEventListener(this);
window.getContentPane().add(canvas);
-
canvas.setSize(newDim.width, newDim.height);
// register event listener