This is an automated email from the ASF dual-hosted git repository.

mattcasters 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 4b40260151 Add keyboard shortcut to expand and collapse all in explore 
and metadata perspective #7601 (#7602)
4b40260151 is described below

commit 4b40260151fe9bdbf769b5875120585bc0ad7348
Author: Nicolas Adment <[email protected]>
AuthorDate: Fri Jul 24 09:38:12 2026 +0200

    Add keyboard shortcut to expand and collapse all in explore and metadata 
perspective #7601 (#7602)
---
 .../hop/ui/hopgui/perspective/explorer/ExplorerPerspective.java       | 4 ++++
 .../hop/ui/hopgui/perspective/metadata/MetadataPerspective.java       | 4 ++++
 2 files changed, 8 insertions(+)

diff --git 
a/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/explorer/ExplorerPerspective.java
 
b/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/explorer/ExplorerPerspective.java
index 711d184f89..e90ab069f4 100644
--- 
a/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/explorer/ExplorerPerspective.java
+++ 
b/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/explorer/ExplorerPerspective.java
@@ -2980,6 +2980,8 @@ public class ExplorerPerspective implements 
IHopPerspective, TabClosable, IFileD
       id = CONTEXT_MENU_EXPAND_ALL,
       label = "i18n::ExplorerPerspective.Menu.ExpandAll",
       image = "ui/images/expand-all.svg")
+  @GuiKeyboardShortcut(control = true, key = '+')
+  @GuiOsxKeyboardShortcut(command = true, key = '+')
   public void expandAll() {
     tree.setRedraw(false); // Stop redraw until operation complete
     TreeItem[] selection = tree.getSelection();
@@ -3003,6 +3005,8 @@ public class ExplorerPerspective implements 
IHopPerspective, TabClosable, IFileD
       id = CONTEXT_MENU_COLLAPSE_ALL,
       label = "i18n::ExplorerPerspective.Menu.CollapseAll",
       image = "ui/images/collapse-all.svg")
+  @GuiKeyboardShortcut(control = true, key = '-')
+  @GuiOsxKeyboardShortcut(command = true, key = '-')
   public void collapsedAll() {
     tree.setRedraw(false); // Stop redraw until operation complete
     TreeItem[] selection = tree.getSelection();
diff --git 
a/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/metadata/MetadataPerspective.java
 
b/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/metadata/MetadataPerspective.java
index 588a0504cf..e7e1859298 100644
--- 
a/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/metadata/MetadataPerspective.java
+++ 
b/ui/src/main/java/org/apache/hop/ui/hopgui/perspective/metadata/MetadataPerspective.java
@@ -2081,6 +2081,8 @@ public class MetadataPerspective implements 
IHopPerspective, TabClosable, IMetad
       id = TOOLBAR_ITEM_EXPAND_ALL,
       toolTip = "i18n::MetadataPerspective.ToolbarElement.ExpandAll.Tooltip",
       image = "ui/images/expand-all.svg")
+  @GuiKeyboardShortcut(control = true, key = '+')
+  @GuiOsxKeyboardShortcut(command = true, key = '+')
   public void expandAll() {
     if (tree == null || tree.isDisposed()) {
       return;
@@ -2102,6 +2104,8 @@ public class MetadataPerspective implements 
IHopPerspective, TabClosable, IMetad
       id = TOOLBAR_ITEM_COLLAPSE_ALL,
       toolTip = "i18n::MetadataPerspective.ToolbarElement.CollapseAll.Tooltip",
       image = "ui/images/collapse-all.svg")
+  @GuiKeyboardShortcut(control = true, key = '-')
+  @GuiOsxKeyboardShortcut(command = true, key = '-')
   public void collapseAll() {
     if (tree == null || tree.isDisposed()) {
       return;

Reply via email to