macOS: fix cannot rebind super+up and super+down (#12245)

Fix: #11989
Cause identified to: ab352b5af9
Original PR: #10003
Problem: I don't think it is OK to hard code the keybind like this at
all. Ghostty's config is flexible enough to achieve this.
Proposal: Revert the above commit via this PR.

@yasuf @bo2themax
pull/12254/head
Mitchell Hashimoto 2026-04-12 13:16:06 -07:00 committed by GitHub
commit 7f6d2a44b8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 14 deletions

View File

@ -1937,21 +1937,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