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

davsclaus pushed a commit to branch worktree-more-tui-4
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 39e3c4e11fa927427435b6da55f2120c5ddd0cde
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed May 20 10:16:44 2026 +0200

    camel-jbang - TUI Shift+Tab cycles tabs backwards
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
---
 .../apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git 
a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java
 
b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java
index 03746ef53542..75894d8fb10c 100644
--- 
a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java
+++ 
b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java
@@ -462,7 +462,15 @@ public class CamelMonitor extends CamelCommand {
                 return handleTabKey(TAB_CIRCUIT_BREAKER);
             }
 
-            // Tab cycling
+            // Tab cycling (check Shift+Tab before Tab since Tab binding also 
matches Shift+Tab)
+            if (ke.isFocusPrevious()) {
+                int prev = (tabsState.selected() - 1 + NUM_TABS) % NUM_TABS;
+                if (prev != TAB_OVERVIEW) {
+                    selectCurrentIntegration();
+                }
+                tabsState.select(prev);
+                return true;
+            }
             if (ke.isFocusNext()) {
                 int next = (tabsState.selected() + 1) % NUM_TABS;
                 if (next != TAB_OVERVIEW) {

Reply via email to