fix(code): do not accept tab in codemirror

This commit is contained in:
Andelf
2022-04-22 11:07:38 +08:00
committed by Tienson Qin
parent c5b434c0b2
commit 9938d1971b

View File

@@ -230,6 +230,7 @@
cm-options (merge default-cm-options
(extra-codemirror-options)
{:mode mode
:tabindex -1 ;; do not accept TAB-in, since TAB is bind globally
:extraKeys #js {"Esc" (fn [cm]
;; Avoid reentrancy
(gobj/set cm "escPressed" true)