Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion Sources/GhosttyTerminalView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4886,8 +4886,21 @@ class GhosttyNSView: NSView, NSUserInterfaceValidations {
}
}

// First pass: check if a menu item would handle this event.
// If not, process the key directly instead of relying on AppKit redispatch,
// which silently drops unbound Cmd+Shift combinations.
// Only route to main menu if shouldRouteCommandEquivalentDirectlyToMainMenu
// permits it (e.g., Cmd+` is intentionally excluded).
if !shouldRouteCommandEquivalentDirectlyToMainMenu(event) {
lastPerformKeyEvent = nil
return false
}
lastPerformKeyEvent = event.timestamp
return false
if let menu = NSApp.mainMenu, menu.performKeyEquivalent(with: event) {
return true
}
equivalent = event.characters ?? ""
break
Comment thread
coderabbitai[bot] marked this conversation as resolved.
}

let finalEvent = NSEvent.keyEvent(
Expand Down