From f8adb848c0d6b61a8a34dfcdaf13ca773000fbb4 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Thu, 18 Apr 2013 03:17:27 +0200 Subject: GLJPanel: setFocusable(true) at ctor to allow keyboard input --- src/jogl/classes/javax/media/opengl/awt/GLJPanel.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/jogl/classes') diff --git a/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java b/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java index 6ef695319..2a68b89d3 100644 --- a/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java +++ b/src/jogl/classes/javax/media/opengl/awt/GLJPanel.java @@ -246,6 +246,8 @@ public class GLJPanel extends JPanel implements AWTGLAutoDrawable, WindowClosing this.factory = GLDrawableFactoryImpl.getFactoryImpl(glProfile); this.chooser = ((chooser != null) ? chooser : new DefaultGLCapabilitiesChooser()); this.shareWith = shareWith; + + this.setFocusable(true); // allow keyboard input! } @Override -- cgit v1.2.3