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:
João Marcos 2025-04-17 21:48:00 -03:00 committed by GitHub
parent 6e0732a9d7
commit 6ffd3f034f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 27 additions and 20 deletions

View file

@ -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 {