diff options
author | Sven Gothel <[email protected]> | 2013-04-18 03:17:27 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-04-18 03:17:27 +0200 |
commit | f8adb848c0d6b61a8a34dfcdaf13ca773000fbb4 (patch) | |
tree | 8aae5a9b4f15315242cf094fa8699719484e4a71 /src/jogl/classes/javax/media/opengl/awt/GLJPanel.java | |
parent | fd418a69eca7b8c1bb74244982305fc6004d0a52 (diff) |
GLJPanel: setFocusable(true) at ctor to allow keyboard input
Diffstat (limited to 'src/jogl/classes/javax/media/opengl/awt/GLJPanel.java')
-rw-r--r-- | src/jogl/classes/javax/media/opengl/awt/GLJPanel.java | 2 |
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 |