diff options
| author | Lina Kemmel | 2011-10-09 14:06:41 +0000 |
|---|---|---|
| committer | Felipe Heidrich | 2011-10-11 14:54:43 +0000 |
| commit | 97a564863cb3520bd1597a176dc964c37d571187 (patch) | |
| tree | 3eb511693e3ecbdff365e0de30756c3dcbb7b0fa | |
| parent | 6106d07aedd16e8634378b6697ca70116afe3628 (diff) | |
| download | eclipse.platform.ui-97a564863cb3520bd1597a176dc964c37d571187.tar.gz eclipse.platform.ui-97a564863cb3520bd1597a176dc964c37d571187.tar.xz eclipse.platform.ui-97a564863cb3520bd1597a176dc964c37d571187.zip | |
Patch per comments 171 & 173
| -rw-r--r-- | bundles/org.eclipse.swt/Eclipse SWT/win32/org/eclipse/swt/widgets/Text.java | 6 |
1 files changed, 6 insertions, 0 deletions
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 2def49530a3..2fa156f0d03 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 @@ -2536,6 +2536,12 @@ int /*long*/ windowProc (int /*long*/ hwnd, int msg, int /*long*/ wParam, int /* int /*long*/ code; if (hooks (SWT.GetSegments) || filters (SWT.GetSegments)) { switch (msg) { + case OS.EM_UNDO: + if ((OS.GetWindowLong (handle, OS.GWL_STYLE) & OS.ES_MULTILINE) == 0) return 1; + // else FALL THROUGH + case OS.WM_UNDO: + case OS.EM_CANUNDO: + return 0; case OS.WM_KEYDOWN: processSegments = wParam == OS.VK_DELETE; break; |
