small comment changes

This commit is contained in:
Mitchell Hashimoto
2024-09-24 20:53:32 -07:00
parent 1b31663865
commit 6d6052d204
2 changed files with 2 additions and 5 deletions

View File

@ -431,8 +431,8 @@ class AppDelegate: NSObject,
} }
} }
// If our reload adds global keybinds and we don't have ax permissions then // We need to handle our global event tap depending on if there are global
// we need to request them. // events that we care about in Ghostty.
if (ghostty_app_has_global_keybinds(ghostty.app!)) { if (ghostty_app_has_global_keybinds(ghostty.app!)) {
if (timeSinceLaunch > 5) { if (timeSinceLaunch > 5) {
// If the process has been running for awhile we enable right away // If the process has been running for awhile we enable right away

View File

@ -208,9 +208,6 @@ pub const App = struct {
target: KeyTarget, target: KeyTarget,
event: KeyEvent, event: KeyEvent,
) !bool { ) !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 action = event.action;
const keycode = event.keycode; const keycode = event.keycode;
const mods = event.mods; const mods = event.mods;