summaryrefslogtreecommitdiffstats
path: root/src/jogl/classes
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2013-04-18 03:17:27 +0200
committerSven Gothel <[email protected]>2013-04-18 03:17:27 +0200
commitf8adb848c0d6b61a8a34dfcdaf13ca773000fbb4 (patch)
tree8aae5a9b4f15315242cf094fa8699719484e4a71 /src/jogl/classes
parentfd418a69eca7b8c1bb74244982305fc6004d0a52 (diff)
GLJPanel: setFocusable(true) at ctor to allow keyboard input
Diffstat (limited to 'src/jogl/classes')
-rw-r--r--src/jogl/classes/javax/media/opengl/awt/GLJPanel.java2
1 files changed, 2 insertions, 0 deletions
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