macOS: fix cannot rebind super+up and super+down

This commit is contained in:
Toby She
2026-04-02 22:55:16 -04:00
parent 0790937d03
commit 30fdc8f4c8

View File

@@ -1999,21 +1999,7 @@ extension Ghostty.SurfaceView: NSTextInputClient {
let current = NSApp.currentEvent,
lastPerformKeyEvent == current.timestamp {
NSApp.sendEvent(current)
return
}
guard let surfaceModel else { return }
// Process MacOS native scroll events
switch selector {
case #selector(moveToBeginningOfDocument(_:)):
_ = surfaceModel.perform(action: "scroll_to_top")
case #selector(moveToEndOfDocument(_:)):
_ = surfaceModel.perform(action: "scroll_to_bottom")
default:
break
}
print("SEL: \(selector)")
}
/// Sync the preedit state based on the markedText value to libghostty