Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
macOS: Remove multi-keystroke rendering in title of menu item (#26448)
Smit Barmasee175878008d7
diff --git a/crates/gpui/src/platform/mac/platform.rs b/crates/gpui/src/platform/mac/platform.rsindex a678c778961..edc8fdfea29 100644--- a/crates/gpui/src/platform/mac/platform.rs+++ b/crates/gpui/src/platform/mac/platform.rs@@ -347,20 +347,7 @@ impl MacPlatform {msg_send![item, setAllowsAutomaticKeyEquivalentLocalization: NO];}item.setKeyEquivalentModifierMask_(mask);- }- // For multi-keystroke bindings, render the keystroke as part of the title.- else {- use std::fmt::Write;-- let mut name = format!("{name} [");- for (i, keystroke) in keystrokes.iter().enumerate() {- if i > 0 {- name.push(' ');- }- write!(&mut name, "{}", keystroke).unwrap();- }- name.push(']');-+ } else {item = NSMenuItem::alloc(nil).initWithTitle_action_keyEquivalent_(ns_string(&name),