diff options
author | Holger Zickner <[email protected]> | 2004-08-19 20:49:56 +0000 |
---|---|---|
committer | Holger Zickner <[email protected]> | 2004-08-19 20:49:56 +0000 |
commit | 59a051a177d1a3730a332bee518dabb086349e96 (patch) | |
tree | c93ddce48f3fd0b647e8f170973e5beafa4c432f /src | |
parent | b0a652c28dd045cd7b5376f1525175b7d5074926 (diff) |
disable FocusTraversalKeys for the GLCanvas
Diffstat (limited to 'src')
-rw-r--r-- | src/jake2/render/JoglBase.java | 7 |
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 |