diff --git a/macos/Sources/Ghostty/SurfaceView_AppKit.swift b/macos/Sources/Ghostty/SurfaceView_AppKit.swift index 60a573c37..f04bf1af3 100644 --- a/macos/Sources/Ghostty/SurfaceView_AppKit.swift +++ b/macos/Sources/Ghostty/SurfaceView_AppKit.swift @@ -884,6 +884,11 @@ extension Ghostty { nil } + // If we are in a keyDown then we don't need to redispatch a command-modded + // key event (see docs for this field) so reset this to nil because + // `interpretKeyEvents` may dispach it. + self.lastCommandEvent = nil + self.interpretKeyEvents([translationEvent]) // If our keyboard changed from this we just assume an input method