From 6db621a1ed08af0052d4baa8d795d7eb536e3823 Mon Sep 17 00:00:00 2001 From: Bartosz Kaszubowski Date: Fri, 26 Sep 2025 18:18:31 +0200 Subject: [PATCH] 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 Screenshot 2025-09-26 at 16 57 08 ### After Screenshot 2025-09-26 at 16 56 21 --- crates/ui/src/components/keybinding.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/ui/src/components/keybinding.rs b/crates/ui/src/components/keybinding.rs index 98703f65f4cf3ccec9e483c70f5a43ac8d53a280..76bd128ed80ada2d8a2606963943de3d5db2cc07 100644 --- a/crates/ui/src/components/keybinding.rs +++ b/crates/ui/src/components/keybinding.rs @@ -473,6 +473,7 @@ fn keystroke_text( if modifiers.alt { match (platform_style, vim_mode) { (PlatformStyle::Mac, false) => text.push_str("Option"), + (PlatformStyle::Mac, true) => text.push_str("option"), (PlatformStyle::Linux | PlatformStyle::Windows, false) => text.push_str("Alt"), (_, true) => text.push_str("alt"), }