From 488a3eeace5b60435fb0f8e8801d76ff35133d5b Mon Sep 17 00:00:00 2001 From: Piotr Osiewicz <24362066+osiewicz@users.noreply.github.com> Date: Fri, 29 Sep 2023 16:45:49 +0200 Subject: [PATCH] ui: Mirror option key in keybindings (#3065) ![image](https://github.com/zed-industries/zed/assets/24362066/94731737-a21a-4cef-a445-eb855f1a4d3e) ![image](https://github.com/zed-industries/zed/assets/24362066/e879ec9a-70aa-4989-923f-4cca18d01587) Release Notes: - Fixed option key's appearance in keybindings --- crates/command_palette/src/command_palette.rs | 2 +- crates/gpui/src/keymap_matcher/keystroke.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/command_palette/src/command_palette.rs b/crates/command_palette/src/command_palette.rs index 90c4481374..10c9ba7b86 100644 --- a/crates/command_palette/src/command_palette.rs +++ b/crates/command_palette/src/command_palette.rs @@ -265,7 +265,7 @@ impl PickerDelegate for CommandPaletteDelegate { .with_children( [ (keystroke.ctrl, "^"), - (keystroke.alt, "⎇"), + (keystroke.alt, "⌥"), (keystroke.cmd, "⌘"), (keystroke.shift, "⇧"), ] diff --git a/crates/gpui/src/keymap_matcher/keystroke.rs b/crates/gpui/src/keymap_matcher/keystroke.rs index bc0caddac9..57992a8341 100644 --- a/crates/gpui/src/keymap_matcher/keystroke.rs +++ b/crates/gpui/src/keymap_matcher/keystroke.rs @@ -112,7 +112,7 @@ impl std::fmt::Display for Keystroke { f.write_char('^')?; } if self.alt { - f.write_char('⎇')?; + f.write_char('⌥')?; } if self.cmd { f.write_char('⌘')?;