Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

ui: Mirror option key in keybindings (#3065)

Piotr Osiewicz488a3eeace5b
diff --git a/crates/command_palette/src/command_palette.rs b/crates/command_palette/src/command_palette.rs
index 90c44813745..10c9ba7b867 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 bc0caddac9b..57992a83419 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('⌘')?;