BUTTON: Fix bug that close Dialog(wizard) when pressed ESC key
authorHyunJong Park <paulhj.park@samsung.com>
Wed, 10 Aug 2016 04:45:40 +0000 (13:45 +0900)
committerHyunJong Park <paulhj.park@samsung.com>
Wed, 10 Aug 2016 04:49:10 +0000 (13:49 +0900)
The ESC key was processed at wrong listener.

Change-Id: I060b81b33ced5c45ae1e001cb83b398a1921f898
Signed-off-by: HyunJong Park <paulhj.park@samsung.com>
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TizenButton.java
bundles/org.eclipse.swt/Eclipse SWT Custom Widgets/common/org/eclipse/swt/custom/TizenPushButtonRenderer.java

index dcd7b6b..b0c04e7 100644 (file)
@@ -147,6 +147,9 @@ public class TizenButton extends Canvas {
                 case SWT.TRAVERSE_TAB_NEXT:
                     e.doit = true;
                     break;
+                case SWT.TRAVERSE_ESCAPE:
+                    e.doit = true;
+                    break;
                 }
             }
         });
@@ -175,10 +178,6 @@ public class TizenButton extends Canvas {
                 case SWT.CR:
                     fireEventWhenEnterKeyPressed();
                     break;
-                case SWT.ESC:
-//                    Display.getCurrent().g
-//                    Display.getCurrent().getActiveShell().dispose();
-                    break;
                 }
             }
         });
index 025e785..e7e701b 100644 (file)
@@ -274,9 +274,6 @@ public class TizenPushButtonRenderer extends TizenAbstractButtonRenderer {
                     return;
                 }
                 switch (event.character) {
-                case SWT.ESC:
-                    // Display.getCurrent().getActiveShell().dispose();
-                    break;
                 case SWT.CR:
                     /*
                      * Filter the key event of focus state