[Title] bug fix ProgressDialog
authorheeyoung <heeyoung1008.hwang@samsung.com>
Tue, 25 Feb 2014 09:36:47 +0000 (18:36 +0900)
committerheeyoung <heeyoung1008.hwang@samsung.com>
Tue, 25 Feb 2014 09:36:47 +0000 (18:36 +0900)
[Desc.] ESC key is pressed, the ProgressDialog will not disappear
[Issue] -

Change-Id: I03fdf6f54f4dd799796589d160a6d6181a6ac027
Signed-off-by: heeyoung <heeyoung1008.hwang@samsung.com>
org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/widgets/ProgressDialog.java

index 16b105e..48cab08 100644 (file)
@@ -102,6 +102,16 @@ public class ProgressDialog {
                shell.getDisplay().addFilter(SWT.MouseDown, shellMouseListener);
                shell.getDisplay().addFilter(SWT.MouseUp, shellMouseListener);
                shell.getDisplay().addFilter(SWT.MouseMove, shellMouseListener);
+               
+               shell.addListener(SWT.Traverse, new Listener() {
+                       
+                       @Override
+                       public void handleEvent(Event event) {
+                               if (event.detail == SWT.TRAVERSE_ESCAPE) {
+                                       event.doit = false;
+                               }
+                       }
+               });
        }
 
        public void open() {