From a54d9f16977ba04173da55883950270458b5fe9b Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 25 Jul 2022 11:42:54 -0700 Subject: [PATCH] Add comment about noop performKeyEquivalent function --- crates/gpui/src/platform/mac/window.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/gpui/src/platform/mac/window.rs b/crates/gpui/src/platform/mac/window.rs index a41a42f1587ee060cc258352679a134790d05664..b34da93c45d5b7015fd32e708ca5b7306c1614fe 100644 --- a/crates/gpui/src/platform/mac/window.rs +++ b/crates/gpui/src/platform/mac/window.rs @@ -253,6 +253,8 @@ unsafe fn build_classes() { attributed_substring_for_proposed_range as extern "C" fn(&Object, Sel, NSRange, *mut c_void) -> id, ); + + // Suppress beep on keystrokes with modifier keys. decl.add_method( sel!(doCommandBySelector:), do_command_by_selector as extern "C" fn(&Object, Sel, Sel), @@ -1145,9 +1147,7 @@ extern "C" fn attributed_substring_for_proposed_range( .unwrap_or(nil) } -extern "C" fn do_command_by_selector(_: &Object, _: Sel, _: Sel) { - // -} +extern "C" fn do_command_by_selector(_: &Object, _: Sel, _: Sel) {} async fn synthetic_drag( window_state: Weak>,