Skip to content

Commit 6db621a

Browse files
authored
ui: Display option in lowercase in Vim mode keybindings (#38969)
# Why Spotted that some tooltips include `alt` keystroke combination on macOS. # How Add missing `vim_mode` version definition of `Option` key to the `keystroke_text` helper. Release Notes: - Fixed keystroke to text helper output for macOS `Option` key in Vim mode # Preview ### Before <img width="712" height="264" alt="Screenshot 2025-09-26 at 16 57 08" src="https://github.com/user-attachments/assets/d5daa37f-0da7-4430-91ea-4a750c025472" /> ### After <img width="712" height="264" alt="Screenshot 2025-09-26 at 16 56 21" src="https://github.com/user-attachments/assets/5804ed39-9b1b-4028-a9c9-32c066042f4a" />
1 parent 948b437 commit 6db621a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

crates/ui/src/components/keybinding.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,7 @@ fn keystroke_text(
473473
if modifiers.alt {
474474
match (platform_style, vim_mode) {
475475
(PlatformStyle::Mac, false) => text.push_str("Option"),
476+
(PlatformStyle::Mac, true) => text.push_str("option"),
476477
(PlatformStyle::Linux | PlatformStyle::Windows, false) => text.push_str("Alt"),
477478
(_, true) => text.push_str("alt"),
478479
}

0 commit comments

Comments
 (0)