aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/editor.mjs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/editor.mjs b/src/editor.mjs
index 6456293..9ff8be6 100644
--- a/src/editor.mjs
+++ b/src/editor.mjs
@@ -559,9 +559,12 @@ document.onkeydown = (e) => {
559 e.preventDefault() 559 e.preventDefault()
560 return null 560 return null
561 } 561 }
562 if (!cm.hasFocus()) {
563 if (!dumbymap) return
564 562
563 if (!cm.hasFocus()) {
564 if (e.key === 'F1') {
565 e.preventDefault()
566 cm.focus()
567 }
565 if (e.key === 'Tab') { 568 if (e.key === 'Tab') {
566 e.preventDefault() 569 e.preventDefault()
567 dumbymap.utils.focusNextMap(e.shiftKey) 570 dumbymap.utils.focusNextMap(e.shiftKey)