diff options
author | Xerxes Rånby <[email protected]> | 2015-08-25 17:28:06 +0200 |
---|---|---|
committer | Xerxes Rånby <[email protected]> | 2015-08-25 17:28:06 +0200 |
commit | a963506dc19eca14f0fe7bbf22700b5791bd6821 (patch) | |
tree | b4cbe78d1faf9ba3431d61b106029cd6ba014259 /src/newt/classes | |
parent | 5db1ba769b6a4b8f8e7148728bb1a82149c822ee (diff) |
Bug 1178: X11UnderlayTracker: Resend identical KeyCode, KeySymbol and KeyChar
Signed-off-by: Xerxes Rånby <[email protected]>
Diffstat (limited to 'src/newt/classes')
-rw-r--r-- | src/newt/classes/jogamp/newt/driver/x11/X11UnderlayTracker.java | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/newt/classes/jogamp/newt/driver/x11/X11UnderlayTracker.java b/src/newt/classes/jogamp/newt/driver/x11/X11UnderlayTracker.java index 0b19dd726..1be6dcea8 100644 --- a/src/newt/classes/jogamp/newt/driver/x11/X11UnderlayTracker.java +++ b/src/newt/classes/jogamp/newt/driver/x11/X11UnderlayTracker.java @@ -400,20 +400,16 @@ public class X11UnderlayTracker implements WindowListener, KeyListener, MouseLis @Override public void keyPressed(KeyEvent e) { if (focusedWindow != null) { - // e.setConsumed(false); - // focusedWindow.consumeEvent(e); focusedWindow.sendKeyEvent(e.getEventType(), e.getModifiers(), - e.getKeyCode(), e.getKeyCode(), (char) e.getKeySymbol()); + e.getKeyCode(), e.getKeySymbol(), e.getKeyChar()); } } @Override public void keyReleased(KeyEvent e) { if (focusedWindow != null) { - // e.setConsumed(false); - // focusedWindow.consumeEvent(e); focusedWindow.sendKeyEvent(e.getEventType(), e.getModifiers(), - e.getKeyCode(), e.getKeyCode(), (char) e.getKeySymbol()); + e.getKeyCode(), e.getKeySymbol(), e.getKeyChar()); } } |