This is an automated email from the ASF dual-hosted git repository. davsclaus pushed a commit to branch fix/CAMEL-23934 in repository https://gitbox.apache.org/repos/asf/camel.git
commit b7e863e76e74fa6c362829e4d91d9a897875733a Author: Claus Ibsen <[email protected]> AuthorDate: Wed Jul 8 15:12:42 2026 +0200 CAMEL-23934: Use mnemonic style for Go To popup shortcut keys Co-Authored-By: Claude Opus 4.6 <[email protected]> Signed-off-by: Claus Ibsen <[email protected]> --- .../org/apache/camel/dsl/jbang/core/commands/tui/GotoTabPopup.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/GotoTabPopup.java b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/GotoTabPopup.java index 3f42d8ef7980..579b186519f6 100644 --- a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/GotoTabPopup.java +++ b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/GotoTabPopup.java @@ -189,8 +189,10 @@ class GotoTabPopup { Style dimStyle = Style.EMPTY.dim(); for (TabRegistry.TabEntry entry : filteredEntries) { List<Span> spans = new ArrayList<>(); - String key = String.format(" %-2s ", entry.shortcut()); - spans.add(Span.styled(key, dimStyle)); + String sc = entry.shortcut(); + spans.add(Span.raw(" ")); + spans.add(Span.styled(sc, Theme.mnemonic())); + spans.add(Span.raw(" ".repeat(Math.max(1, 3 - sc.length())))); String name = entry.name(); if (name.length() > nameColWidth) { name = name.substring(0, nameColWidth);
