From 30fdc8f4c881c309199bd75086b52962e3ed344c Mon Sep 17 00:00:00 2001 From: Toby She Date: Thu, 2 Apr 2026 22:55:16 -0400 Subject: [PATCH] macOS: fix cannot rebind super+up and super+down --- .../Ghostty/Surface View/SurfaceView_AppKit.swift | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/macos/Sources/Ghostty/Surface View/SurfaceView_AppKit.swift b/macos/Sources/Ghostty/Surface View/SurfaceView_AppKit.swift index f9448cd0d..47556b9b2 100644 --- a/macos/Sources/Ghostty/Surface View/SurfaceView_AppKit.swift +++ b/macos/Sources/Ghostty/Surface View/SurfaceView_AppKit.swift @@ -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