fix: route the URL shortcut to the inline input

This commit is contained in:
2026-10-19 19:09:11 +02:00
parent f6485bf221
commit d068c52e04
5 changed files with 32 additions and 26 deletions
+3
View File
@@ -94,6 +94,9 @@ extension PlayerModel {
private func handleKeyEvent(_ event: NSEvent, in window: NSWindow, chord: KeyChord) -> Bool {
guard event.window === window, NSApp.modalWindow == nil, window.attachedSheet == nil else { return false }
if chord.modifiers.contains(.command), keyBindings.shortcuts(for: .openYoutube).contains(chord) {
return perform(.openYoutube)
}
let responder = window.firstResponder
if let text = responder as? NSTextView, text.isEditable || text.isSelectable { return false }
if let text = responder as? NSTextField, text.isEditable || text.isSelectable { return false }