diff options
author | Scott Kovatch | 2009-02-13 22:45:58 +0000 |
---|---|---|
committer | Scott Kovatch | 2009-02-13 22:45:58 +0000 |
commit | db44f811fdd3778cffa3b94af6d227463daf97df (patch) | |
tree | 485e352a22c35c9f89edafc6336d219be2dd5835 /bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSEvent.java | |
parent | b683aa10176d904b43fcc24b25f27de44d98f32a (diff) | |
download | eclipse.platform.swt-db44f811fdd3778cffa3b94af6d227463daf97df.tar.gz eclipse.platform.swt-db44f811fdd3778cffa3b94af6d227463daf97df.tar.xz eclipse.platform.swt-db44f811fdd3778cffa3b94af6d227463daf97df.zip |
263999 - Use UCKeyTranslate to get the unmodified key that triggered the key event.
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSEvent.java')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSEvent.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSEvent.java b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSEvent.java index 5b73f8b8a4..69ebb9b9ed 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSEvent.java +++ b/bundles/org.eclipse.swt/Eclipse SWT PI/cocoa/org/eclipse/swt/internal/cocoa/NSEvent.java @@ -24,6 +24,10 @@ public NSEvent(id id) { super(id); } +public int /*long*/ CGEvent() { + return OS.objc_msgSend(this.id, OS.sel_CGEvent); +} + public int /*long*/ buttonNumber() { return OS.objc_msgSend(this.id, OS.sel_buttonNumber); } |