mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-27 12:54:42 +00:00
Don't send key equivalents to the input hanlder (#20621)
Release Notes: - Fix `cmd-backtick` to change windows
This commit is contained in:
parent
a15f408f0c
commit
3c2dcf50fa
1 changed files with 6 additions and 0 deletions
|
@ -1298,6 +1298,12 @@ extern "C" fn handle_key_event(this: &Object, native_event: id, key_equivalent:
|
|||
}
|
||||
}
|
||||
|
||||
// Don't send key equivalents to the input handler,
|
||||
// or macOS shortcuts like cmd-` will stop working.
|
||||
if key_equivalent {
|
||||
return NO;
|
||||
}
|
||||
|
||||
unsafe {
|
||||
let input_context: id = msg_send![this, inputContext];
|
||||
msg_send![input_context, handleEvent: native_event]
|
||||
|
|
Loading…
Reference in a new issue