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 872b4ca667 CCombo does not allow copy paste in metadata explorer, 
fixes #5592 (#5887)
872b4ca667 is described below

commit 872b4ca66780f8aee1af5cc65eeecbafab4a434b
Author: Hans Van Akelyen <[email protected]>
AuthorDate: Fri Oct 24 11:15:15 2025 +0200

    CCombo does not allow copy paste in metadata explorer, fixes #5592 (#5887)
---
 ui/src/main/java/org/apache/hop/ui/hopgui/HopGuiKeyHandler.java | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ui/src/main/java/org/apache/hop/ui/hopgui/HopGuiKeyHandler.java 
b/ui/src/main/java/org/apache/hop/ui/hopgui/HopGuiKeyHandler.java
index 2b78cbb159..c56400829a 100644
--- a/ui/src/main/java/org/apache/hop/ui/hopgui/HopGuiKeyHandler.java
+++ b/ui/src/main/java/org/apache/hop/ui/hopgui/HopGuiKeyHandler.java
@@ -28,6 +28,7 @@ import org.apache.hop.core.logging.LogChannel;
 import org.apache.hop.ui.hopgui.perspective.IHopPerspective;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.SWTException;
+import org.eclipse.swt.custom.CCombo;
 import org.eclipse.swt.events.KeyAdapter;
 import org.eclipse.swt.events.KeyEvent;
 import org.eclipse.swt.widgets.Combo;
@@ -68,7 +69,9 @@ public class HopGuiKeyHandler extends KeyAdapter {
     //
 
     // Ignore shortcuts inside Text or Combo widgets
-    if (event.widget instanceof Text || event.widget instanceof Combo) {
+    if (event.widget instanceof Text
+        || event.widget instanceof Combo
+        || event.widget instanceof CCombo) {
       // Ignore Copy/Cut/Paste/Select all
       String keys = new String(new char[] {'a', 'c', 'v', 'x'});
       if ((event.stateMask & (SWT.CONTROL + SWT.COMMAND)) != 0

Reply via email to