From 59a051a177d1a3730a332bee518dabb086349e96 Mon Sep 17 00:00:00 2001 From: Holger Zickner Date: Thu, 19 Aug 2004 20:49:56 +0000 Subject: disable FocusTraversalKeys for the GLCanvas --- src/jake2/render/JoglBase.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/jake2') 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 -- cgit v1.2.3