This is an automated email from the ASF dual-hosted git repository.
hansva pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hop.git
The following commit(s) were added to refs/heads/main by this push:
new 36a08384b0 issue #7296 : MessageBox doesn't equate ESC to Cancel
(#7371)
36a08384b0 is described below
commit 36a08384b0b852b6a86276ce9518bb65238c0014
Author: Matt Casters <[email protected]>
AuthorDate: Tue Jun 30 09:17:55 2026 +0200
issue #7296 : MessageBox doesn't equate ESC to Cancel (#7371)
---
ui/src/main/java/org/apache/hop/ui/core/dialog/MessageBox.java | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/ui/src/main/java/org/apache/hop/ui/core/dialog/MessageBox.java
b/ui/src/main/java/org/apache/hop/ui/core/dialog/MessageBox.java
index bb8c70d9d9..a411a6e028 100644
--- a/ui/src/main/java/org/apache/hop/ui/core/dialog/MessageBox.java
+++ b/ui/src/main/java/org/apache/hop/ui/core/dialog/MessageBox.java
@@ -173,6 +173,15 @@ public class MessageBox extends Dialog {
shell.addListener(SWT.Close, e -> cancel());
+ shell.addListener(
+ SWT.Traverse,
+ e -> {
+ if (e.detail == SWT.TRAVERSE_ESCAPE) {
+ e.doit = false;
+ cancel();
+ }
+ });
+
BaseTransformDialog.setSize(shell);
// If minimum size is set, use it directly instead of packing