feat: add modal Vim editing to notes

This commit is contained in:
2026-10-22 11:25:41 +02:00
parent 665691ddee
commit 615cbd6eb6
7 changed files with 781 additions and 5 deletions
@@ -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
}