This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/camel.git
commit 13538839a4ab4a452421342473c0fa353bfcf855 Author: Claus Ibsen <[email protected]> AuthorDate: Mon Jul 27 20:22:07 2026 +0200 camel-tui: Block Source tab shortcut when infra service is selected Co-Authored-By: Claude Opus 4.6 <[email protected]> Signed-off-by: Claus Ibsen <[email protected]> --- .../org/apache/camel/dsl/jbang/core/commands/tui/CamelMonitor.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 e24dde92c837..642b3cdb08c3 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 @@ -748,13 +748,13 @@ public class CamelMonitor extends CamelCommand { if (ke.isChar('1')) { return tabRegistry.handleTabKey(TAB_OVERVIEW, ctx, dataService); } - if (ke.isChar('2')) { - return tabRegistry.handleTabKey(TAB_SOURCE, ctx, dataService); - } if (ke.isChar('3')) { return tabRegistry.handleTabKey(TAB_LOG, ctx, dataService); } if (!isInfraSelected()) { + if (ke.isChar('2')) { + return tabRegistry.handleTabKey(TAB_SOURCE, ctx, dataService); + } if (ke.isChar('4')) { return tabRegistry.handleTabKey(TAB_ACTIVITY, ctx, dataService); }
