From e708e100f8ab1e9d40a025dee6cebdd5da60a939 Mon Sep 17 00:00:00 2001 From: Carolyn MacLeod Date: Mon, 30 Apr 2012 12:16:26 -0400 Subject: Bug 375723 - Handle MENU_KEYBOARD in more widgets --- .../Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java index 02f0f3495f..3fe07bcd19 100644 --- a/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java +++ b/bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java @@ -2386,6 +2386,12 @@ int untranslateOffset (int offset) { return offset; } +void updateMenuLocation (Event event) { + Point point = display.map (this, null, getCaretLocation ()); + event.x = point.x; + event.y = point.y + getLineHeight (); +} + void updateOrientation (){ int bits = OS.GetWindowLong (handle, OS.GWL_EXSTYLE); if ((style & SWT.RIGHT_TO_LEFT) != 0) { -- cgit