diff options
author | Sven Gothel <[email protected]> | 2013-04-11 07:29:02 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2013-04-11 07:29:02 +0200 |
commit | 294294c2317d1a22406f471c74235315afed86e4 (patch) | |
tree | b397424b80b1af57b0ad94b2b469d4275096ab01 /src | |
parent | 46204dca637a02ebcfdbed803bd5fc4c8fa8c769 (diff) |
LinuxEventDeviceTracker: Reapply changes from commit b13868b612689307ebf4e46ee4ede2fd0560e504, which got lost via my merge conflict resolution (duh).
Diffstat (limited to 'src')
-rw-r--r-- | src/newt/classes/jogamp/newt/driver/linux/LinuxEventDeviceTracker.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/newt/classes/jogamp/newt/driver/linux/LinuxEventDeviceTracker.java b/src/newt/classes/jogamp/newt/driver/linux/LinuxEventDeviceTracker.java index 7b8c5eb2a..e68b91d82 100644 --- a/src/newt/classes/jogamp/newt/driver/linux/LinuxEventDeviceTracker.java +++ b/src/newt/classes/jogamp/newt/driver/linux/LinuxEventDeviceTracker.java @@ -376,11 +376,11 @@ public class LinuxEventDeviceTracker implements WindowListener { } private char NewtVKey2Unicode(short VK, int modifiers) { - if( KeyEvent.isPrintableKey(VK) ) { + if( KeyEvent.isPrintableKey(VK, true) ) { if((modifiers & InputEvent.SHIFT_MASK) == InputEvent.SHIFT_MASK) { return (char)VK; } else { - return (((char)VK) + "").toLowerCase().charAt(0); + return String.valueOf((char)VK).toLowerCase().charAt(0); } } return 0; @@ -548,9 +548,9 @@ public class LinuxEventDeviceTracker implements WindowListener { case 39: return KeyEvent.VK_SEMICOLON; case 40: // apostrophe - return KeyEvent.VK_DEAD_ACUTE; + return KeyEvent.VK_QUOTE; case 41: // grave - return KeyEvent.VK_DEAD_GRAVE; + return KeyEvent.VK_BACK_QUOTE; case 42: // left shift return KeyEvent.VK_SHIFT; |