Correctly show the shift icon for keybindings on macOS (#9235)

Release Notes:

- N/A

Co-authored-by: Nathan <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra 2024-03-12 18:27:24 +01:00 committed by GitHub
parent ece0fb532d
commit e7289c385d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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("+"))
}