diff --git a/macos/Sources/App/macOS/AppDelegate.swift b/macos/Sources/App/macOS/AppDelegate.swift index 1aeea6626..44f0f0291 100644 --- a/macos/Sources/App/macOS/AppDelegate.swift +++ b/macos/Sources/App/macOS/AppDelegate.swift @@ -431,8 +431,8 @@ class AppDelegate: NSObject, } } - // If our reload adds global keybinds and we don't have ax permissions then - // we need to request them. + // We need to handle our global event tap depending on if there are global + // events that we care about in Ghostty. if (ghostty_app_has_global_keybinds(ghostty.app!)) { if (timeSinceLaunch > 5) { // If the process has been running for awhile we enable right away diff --git a/src/apprt/embedded.zig b/src/apprt/embedded.zig index 01e3d0743..c540694d0 100644 --- a/src/apprt/embedded.zig +++ b/src/apprt/embedded.zig @@ -208,9 +208,6 @@ pub const App = struct { target: KeyTarget, event: KeyEvent, ) !bool { - // NOTE: If this is updated, take a look at Surface.keyCallback as well. - // Their logic is very similar but not identical. - const action = event.action; const keycode = event.keycode; const mods = event.mods;