Fixed keyhandler preventing event default on non-handled events, bumped to v23

This commit is contained in:
Magnus Åhall 2026-06-12 09:41:06 +02:00
parent b45d8c9240
commit 0001cdebdc
2 changed files with 8 additions and 6 deletions

View file

@ -23,7 +23,7 @@ import (
"text/template"
)
const VERSION = "v22"
const VERSION = "v23"
const CONTEXT_USER = 1
const SYNC_PAGINATION = 200

View file

@ -93,7 +93,7 @@ export class App {
this.nodeUI.renameNode()
break
case 'T':
if (!SHIFT_ALT) break
if (!SHIFT_ALT) { handled = false; break }
if (document.activeElement.id === 'tree-nodes')
this.nodeUI.takeFocus()
else
@ -101,12 +101,12 @@ export class App {
break
case 'F':
if (!SHIFT_ALT) break
if (!SHIFT_ALT) { handled = false; break }
_mbus.dispatch('op-search')
break
case 'M':
if (!SHIFT_ALT) break
if (!SHIFT_ALT) { handled = false; break }
globalThis._mbus.dispatch('MARKDOWN_TOGGLE')
break
@ -115,11 +115,13 @@ export class App {
this.createNode()
else if (SHIFT_CTRL_ALT) {
this.createNode(this.currentNode?.ParentUUID)
}
} else {
handled = false
}
break
case 'S':
if (!SHIFT_ALT) break
if (!SHIFT_ALT) { handled = false; break }
this.nodeUI.saveNode()
break