diff options
author | Grant Gayed <ggayed> | 2010-03-04 17:14:17 +0000 |
---|---|---|
committer | Grant Gayed <ggayed> | 2010-03-04 17:14:17 +0000 |
commit | 93423b1c2f2a04e74723747cfad9e048eefc2763 (patch) | |
tree | a10f98af2270e3a7efc3492b04d646a937bff77d /bundles/org.eclipse.swt/Eclipse SWT Browser/win32 | |
parent | 608e60eecad7d4d0edcb046e3c07ac24e4f3fac1 (diff) | |
download | eclipse.platform.swt-93423b1c2f2a04e74723747cfad9e048eefc2763.tar.gz eclipse.platform.swt-93423b1c2f2a04e74723747cfad9e048eefc2763.tar.xz eclipse.platform.swt-93423b1c2f2a04e74723747cfad9e048eefc2763.zip |
303615 - (Ctrl+Enter sends too many events)
Diffstat (limited to 'bundles/org.eclipse.swt/Eclipse SWT Browser/win32')
-rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java index 388b638a93..c591ada4be 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java +++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/IE.java @@ -1588,10 +1588,10 @@ void handleDOMEvent (OleEvent e) { * keys, so the PeekMessage check in the keydown handler always allows a * KeyDown to be sent for this key. However, keydown and keypress events are * both sometimes received for OS.VK_RETURN, depending on the page's focus - * control. To handle this, do not send a KeyDown for OS.VK_RETURN here since - * one is always sent for it from the keydown handler. + * control. To handle this, do not send a KeyDown for CR or LF here since + * one is always sent for it from the keydown handler. */ - if (lastCharCode == OS.VK_RETURN) { + if (lastCharCode == SWT.CR || lastCharCode == SWT.LF) { event.dispose(); return; } |