]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
(refs #7464) Fixed SWTKeyEventAdapter for producing '*' 15/915/3
authorHannu Niemistö <hannu.niemisto@semantum.fi>
Tue, 5 Sep 2017 09:26:50 +0000 (12:26 +0300)
committerTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Tue, 5 Sep 2017 09:44:17 +0000 (12:44 +0300)
Change-Id: I53497ff8a7999e69c3e9a906d02dd4b229486435

bundles/org.simantics.g2d/src/org/simantics/g2d/event/adapter/SWTKeyEventAdapter.java

index ce36ba2c97ae56edf5a6ba74eee9bcc421abc634..e10c8e6a6c6072f043f1f6bc6801e708a9dd5bd2 100644 (file)
@@ -118,6 +118,7 @@ public class SWTKeyEventAdapter extends AbstractEventAdapter implements KeyListe
             case SWT.PAUSE: return KeyEvent.VK_PAUSE;
             //case SWT.BREAK: return KeyEvent.vk_
             case SWT.PRINT_SCREEN: return KeyEvent.VK_PRINTSCREEN;
+            case '\'': return KeyEvent.VK_QUOTE;
 
             case SWT.DEL: return KeyEvent.VK_DELETE;
             case SWT.CR: return KeyEvent.VK_ENTER;