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:
parent
ece0fb532d
commit
e7289c385d
1 changed files with 1 additions and 1 deletions
|
@ -132,7 +132,7 @@ impl RenderOnce for KeyBinding {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.when(keystroke.modifiers.shift, |el| match self.display {
|
.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 => {
|
KeyBindingDisplay::Linux | KeyBindingDisplay::Windows => {
|
||||||
el.child(Key::new("Shift")).child(Key::new("+"))
|
el.child(Key::new("Shift")).child(Key::new("+"))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue