From 1af423b6bdb40448f9aae1475e3d47fd84713721 Mon Sep 17 00:00:00 2001 From: heeyoung Date: Tue, 25 Feb 2014 18:36:47 +0900 Subject: [PATCH] [Title] bug fix ProgressDialog [Desc.] ESC key is pressed, the ProgressDialog will not disappear [Issue] - Change-Id: I03fdf6f54f4dd799796589d160a6d6181a6ac027 Signed-off-by: heeyoung --- .../org/tizen/dynamicanalyzer/ui/widgets/ProgressDialog.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/widgets/ProgressDialog.java b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/widgets/ProgressDialog.java index 16b105e..48cab08 100644 --- a/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/widgets/ProgressDialog.java +++ b/org.tizen.dynamicanalyzer/src/org/tizen/dynamicanalyzer/ui/widgets/ProgressDialog.java @@ -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() { -- 2.7.4