Don't display MacOS key symbols in Linux (#29016)
Release Notes: - Fix MacOS key symbols being displayed in other platforms.
This commit is contained in:
parent
6e0732a9d7
commit
6ffd3f034f
2 changed files with 27 additions and 20 deletions
|
@ -378,12 +378,7 @@ pub fn text_for_keystroke(keystroke: &Keystroke, cx: &App) -> String {
|
|||
/// Returns a textual representation of the given [`Keystroke`].
|
||||
fn keystroke_text(keystroke: &Keystroke, platform_style: PlatformStyle, vim_mode: bool) -> String {
|
||||
let mut text = String::new();
|
||||
|
||||
let delimiter = match (platform_style, vim_mode) {
|
||||
(PlatformStyle::Mac, false) => '-',
|
||||
(PlatformStyle::Linux | PlatformStyle::Windows, false) => '-',
|
||||
(_, true) => '-',
|
||||
};
|
||||
let delimiter = '-';
|
||||
|
||||
if keystroke.modifiers.function {
|
||||
match vim_mode {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue