fix: give native Quit its Command shortcut during text editing

This commit is contained in:
2026-10-12 15:18:42 +02:00
parent b2dc5fa373
commit 30cf85e880
5 changed files with 25 additions and 9 deletions
+3 -1
View File
@@ -184,8 +184,10 @@ private enum CLIInstanceCheck {
if let menu = NSApp.mainMenu { prepareMenu(menu) }
precondition(NSApp.mainMenu?.performKeyEquivalent(with: event) == true,
"Configured shortcut must be accepted by the native menu")
} else if input["queued"] as? Bool == true {
NSApp.postEvent(event, atStart: false)
} else { NSApp.sendEvent(event) }
if input["editing"] as? Bool == true {
if input["editing"] as? Bool == true && input["queued"] as? Bool != true {
editorText = editor.string
window.makeFirstResponder(nil)
editor.removeFromSuperview()