diff options
author | Xi Yan | 2018-06-19 11:01:27 +0000 |
---|---|---|
committer | Xi Yan | 2018-06-26 13:51:48 +0000 |
commit | 3bf5e22438ca9d3c26eb07f25f363fdcf8344257 (patch) | |
tree | 003a780cbee9ab4545542ddd787f0e221d9be673 /bundles/org.eclipse.swt/Eclipse SWT/win32 | |
parent | 913837c562a87a99024b3b1d5c815ed60dea5568 (diff) | |
download | eclipse.platform.swt-3bf5e22438ca9d3c26eb07f25f363fdcf8344257.tar.gz eclipse.platform.swt-3bf5e22438ca9d3c26eb07f25f363fdcf8344257.tar.xz eclipse.platform.swt-3bf5e22438ca9d3c26eb07f25f363fdcf8344257.zip |
Bug 302171 - Characters requiring <Alt Gr> cannot be generated using
Display.post(Event)
1) Added SWT.ALT_GR constant mapping to ISO_Level3_Shift (0xfe03).
2) Replaced OS.XTestFakeKeyEvent in Display.post, which only supported
US keyboards, with gdk_test_simulate_key to simulate key event. Added
the option to send key modifier together with key character in a single
event to Display.post on GTK.
Change-Id: I97311e639b612ac1f6aed23beb68034f40d211b1
Signed-off-by: Xi Yan <xixiyan@redhat.com>
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT/win32')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java index feb9016f3c..3499e184b5 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Display.java @@ -3317,6 +3317,10 @@ int numpadKey (int key) { * <li>(in) character a character that corresponds to a keyboard key</li> * <li>(in) keyCode the key code of the key that was typed, * as defined by the key code constants in class <code>SWT</code></li> + * <p> Optional (on some platforms): </p> + * <li>(in) stateMask the state of the keyboard modifier, + * as defined by the key code constants in class <code>SWT</code> + * </li> * </ul> * <p>MouseDown, MouseUp</p> * <p>The following fields in the <code>Event</code> apply: |