Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVeronika Irvine2001-09-06 12:09:54 -0400
committerVeronika Irvine2001-09-06 12:09:54 -0400
commitf61920c6b27e95d503837a508cc42bb234d47860 (patch)
treea2a322bc70c57af26a42b361a328c8eb1ca26d10
parent9db9eaa4c9346279d69887c57d68487acf58fa79 (diff)
downloadeclipse.platform.swt-R0_9.tar.gz
eclipse.platform.swt-R0_9.tar.xz
eclipse.platform.swt-R0_9.zip
patch to fix double translate acceleratorsv0_9_plus_1GG1WZXR0_9
-rwxr-xr-xbundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleFrame.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleFrame.java b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleFrame.java
index 87d4432ebc..ed6c4987c8 100755
--- a/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleFrame.java
+++ b/bundles/org.eclipse.swt/Eclipse SWT OLE Win32/win32/org/eclipse/swt/ole/win32/OleFrame.java
@@ -199,6 +199,9 @@ static int getMsgProc(int code, int wParam, int lParam) {
if (site.handle == hwnd) {
OleFrame frame = site.frame;
if (frame.translateOleAccelerator(msg)) {
+ // In order to prevent this message from also being processed
+ // by the application, zero out message, wParam and lParam
+ OS.MoveMemory(lParam + 4, new int[] {OS.WM_NULL, 0, 0}, 12);
return 0;
}
}

Back to the top