summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGrant Gayed <ggayed>2008-05-28 20:06:17 +0000
committerGrant Gayed <ggayed>2008-05-28 20:06:17 +0000
commit73a84b5055a6e8b9d3988630057727bfa99b8f45 (patch)
treedc5e2e4fa6a37026f438df9a22963925614cec52
parent754bd4819e737c20929c11a9fd611f586b21c5dc (diff)
downloadeclipse.platform.swt-73a84b5055a6e8b9d3988630057727bfa99b8f45.tar.gz
eclipse.platform.swt-73a84b5055a6e8b9d3988630057727bfa99b8f45.tar.xz
eclipse.platform.swt-73a84b5055a6e8b9d3988630057727bfa99b8f45.zip
234433 - Some characters cannot be entered in forms
-rw-r--r--bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/WebSite.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/WebSite.java b/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/WebSite.java
index afc082d7c6..e035b489a1 100644
--- a/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/WebSite.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT Browser/win32/org/eclipse/swt/browser/WebSite.java
@@ -280,9 +280,6 @@ int TranslateAccelerator(int /*long*/ lpMsg, int /*long*/ pguidCmdGroup, int nCm
OS.MoveMemory(msg, lpMsg, MSG.sizeof);
if (msg.message == OS.WM_KEYDOWN) {
switch ((int)/*64*/msg.wParam) {
- case OS.VK_N:
- if (OS.GetKeyState (OS.VK_CONTROL) < 0) result = COM.S_OK;
- break;
case OS.VK_F5:
OleAutomation auto = new OleAutomation(this);
int[] rgdispid = auto.getIDsOfNames(new String[] { "LocationURL" }); //$NON-NLS-1$
@@ -311,6 +308,13 @@ int TranslateAccelerator(int /*long*/ lpMsg, int /*long*/ pguidCmdGroup, int nCm
*/
frame.setData(CONSUME_KEY, "true"); //$NON-NLS-1$
break;
+ case OS.VK_N:
+ /* If the exact keypress is Ctrl+N, which opens a new external IE, then eat this key */
+ if (OS.GetKeyState (OS.VK_CONTROL) < 0 && OS.GetKeyState (OS.VK_MENU) >= 0 && OS.GetKeyState (OS.VK_SHIFT) >= 0) {
+ result = COM.S_OK;
+ break;
+ }
+ // FALL THROUGH
default:
OS.TranslateMessage(msg);
frame.setData(CONSUME_KEY, "true"); //$NON-NLS-1$