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.
pull/7507/head
Mitchell Hashimoto 2025-06-02 12:16:41 -07:00 committed by GitHub
commit 957ddd00dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

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