mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-08-02 14:57:31 +03:00
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:
@ -692,6 +692,11 @@ extension Ghostty {
|
|||||||
// sound and we don't like the beep sound.
|
// sound and we don't like the beep sound.
|
||||||
equivalent = "_"
|
equivalent = "_"
|
||||||
|
|
||||||
|
case "\r":
|
||||||
|
// Pass C-<return> through verbatim
|
||||||
|
// (prevent the default context menu equivalent)
|
||||||
|
equivalent = "\r"
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// Ignore other events
|
// Ignore other events
|
||||||
return false
|
return false
|
||||||
|
Reference in New Issue
Block a user