macOS: prevent ctrl-return key equivalent

macOS 15 adds this as a default key equivalent to show the context menu,
this is annoying, so we capture the event and tell macOS we handled it.
This commit is contained in:
Qwerasd
2024-09-23 16:55:11 -06:00
parent 8f6ecaa4f0
commit 92d310a660

View File

@ -692,6 +692,11 @@ extension Ghostty {
// sound and we don't like the beep sound.
equivalent = "_"
case "\r":
// Pass C-<return> through verbatim
// (prevent the default context menu equivalent)
equivalent = "\r"
default:
// Ignore other events
return false