mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-14 03:25:50 +00:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user