You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2026/07/10 16:40:09 UTC
(camel) 08/19: TUI: Implement advertised F5 reload in StartupTab
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 bc43ef6a9cbc8261d8131aff11ba6612e0c9efa1
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Jul 10 16:39:56 2026 +0200
TUI: Implement advertised F5 reload in StartupTab
The help text documented F5 to reload startup data but no key handler
existed, leaving a failed first load permanently stuck. Add the F5
handler to call loadStartupData().
Co-Authored-By: Claude Opus 4.6 <no...@anthropic.com>
Signed-off-by: Claus Ibsen <cl...@gmail.com>
---
.../java/org/apache/camel/dsl/jbang/core/commands/tui/StartupTab.java | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/StartupTab.java b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/StartupTab.java
index 9c3deceb75ec..0df04c613750 100644
--- a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/StartupTab.java
+++ b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/StartupTab.java
@@ -101,6 +101,10 @@ class StartupTab extends AbstractTab {
scrollOffset = Integer.MAX_VALUE;
return true;
}
+ if (ke.isKey(KeyCode.F5)) {
+ loadStartupData();
+ return true;
+ }
return false;
}