mirror of
https://github.com/logseq/logseq.git
synced 2026-05-02 09:56:31 +00:00
fix: skip ime composing
This commit is contained in:
@@ -2753,15 +2753,19 @@
|
||||
|
||||
(defn keydown-not-matched-handler
|
||||
[format]
|
||||
(fn [e _key-code]
|
||||
(fn [e key-code]
|
||||
(let [input-id (state/get-edit-input-id)
|
||||
input (state/get-input)
|
||||
key (gobj/get e "key")
|
||||
value (gobj/get input "value")
|
||||
ctrlKey (gobj/get e "ctrlKey")
|
||||
metaKey (gobj/get e "metaKey")
|
||||
is-composing? (gobj/getValueByKeys e "event_" "isComposing")
|
||||
pos (cursor/pos input)]
|
||||
(cond
|
||||
(or is-composing? (= key-code 229))
|
||||
nil
|
||||
|
||||
(or ctrlKey metaKey)
|
||||
nil
|
||||
|
||||
|
||||
Reference in New Issue
Block a user