feat: add modal Vim editing to notes
This commit is contained in:
@@ -1338,6 +1338,10 @@ final class LauncherWindow: NSWindow {
|
||||
override func sendEvent(_ event: NSEvent) {
|
||||
if event.type == .keyDown, event.keyCode == 53, attachedSheet == nil,
|
||||
event.modifierFlags.intersection([.command, .control, .option, .shift]).isEmpty {
|
||||
if let editor = firstResponder as? NotesTextView, editor.vimEnabled, editor.hasMarkedText() {
|
||||
super.sendEvent(event)
|
||||
return
|
||||
}
|
||||
cancelOperation(nil)
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user