Skip to content

Commit

Permalink
chore: don't handle key down if ctrl/meta pressed
Browse files Browse the repository at this point in the history
gyk committed Dec 15, 2020
1 parent 2188684 commit 9141712
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/frontend/components/editor.cljs
Original file line number Diff line number Diff line change
@@ -491,8 +491,13 @@
(fn [e key-code]
(let [key (gobj/get e "key")
value (gobj/get input "value")
ctrlKey (gobj/get e "ctrlKey")
metaKey (gobj/get e "metaKey")
pos (:pos (util/get-caret-pos input))]
(cond
(or ctrlKey metaKey)
nil

(or
(and (= key "#")
(and

0 comments on commit 9141712

Please sign in to comment.