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" "text/template"
) )
const VERSION = "v22" const VERSION = "v23"
const CONTEXT_USER = 1 const CONTEXT_USER = 1
const SYNC_PAGINATION = 200 const SYNC_PAGINATION = 200

View file

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