Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Correctly show the `shift` icon for keybindings on macOS (#9235)
Antonio Scandurrae7289c385d63
diff --git a/crates/ui/src/components/keybinding.rs b/crates/ui/src/components/keybinding.rsindex 5e64c0b879f..3135a076d94 100644--- a/crates/ui/src/components/keybinding.rs+++ b/crates/ui/src/components/keybinding.rs@@ -132,7 +132,7 @@ impl RenderOnce for KeyBinding {}}).when(keystroke.modifiers.shift, |el| match self.display {- KeyBindingDisplay::Mac => el.child(KeyIcon::new(IconName::Option)),+ KeyBindingDisplay::Mac => el.child(KeyIcon::new(IconName::Shift)),KeyBindingDisplay::Linux | KeyBindingDisplay::Windows => {el.child(Key::new("Shift")).child(Key::new("+"))}