Follow-up to #7462: var -> let (#7505)

Just a quick follow-up to #7462: I noticed Swift was admonishing me
about a `var` that could be a `let`, and realized that it was I who had
failed to make that change. Apologies for the noise.
This commit is contained in:
Mitchell Hashimoto
2025-06-02 12:16:41 -07:00
committed by GitHub

View File

@@ -141,7 +141,7 @@ fileprivate func cgEventFlagsChangedHandler(
guard let event: NSEvent = .init(cgEvent: cgEvent) else { return result }
// Build our event input and call ghostty
var key_ev = event.ghosttyKeyEvent(GHOSTTY_ACTION_PRESS)
let key_ev = event.ghosttyKeyEvent(GHOSTTY_ACTION_PRESS)
if (ghostty_app_key(ghostty, key_ev)) {
GlobalEventTap.logger.info("global key event handled event=\(event)")
return nil