fix: give native Quit its Command shortcut during text editing
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user