mirror of https://github.com/logseq/logseq
fix: hide autocomplete on hashtag deletion
parent
1160ca043a
commit
05d6705923
|
@ -447,12 +447,14 @@
|
||||||
(and (= deleted "(") (state/get-editor-show-block-search))
|
(and (= deleted "(") (state/get-editor-show-block-search))
|
||||||
(state/set-editor-show-block-search false)
|
(state/set-editor-show-block-search false)
|
||||||
|
|
||||||
(and (= deleted "#") (state/get-editor-show-page-search-hashtag))
|
|
||||||
(state/set-editor-show-page-search-hashtag false)
|
|
||||||
|
|
||||||
:else
|
:else
|
||||||
nil))
|
nil))
|
||||||
|
|
||||||
|
;; deleting hashtag
|
||||||
|
(and (= deleted "#") (state/get-editor-show-page-search-hashtag))
|
||||||
|
(do
|
||||||
|
(state/set-editor-show-page-search-hashtag false))
|
||||||
|
|
||||||
:else
|
:else
|
||||||
nil)))
|
nil)))
|
||||||
;; tab
|
;; tab
|
||||||
|
@ -471,6 +473,7 @@
|
||||||
0)))))))}
|
0)))))))}
|
||||||
(fn [e key-code]
|
(fn [e key-code]
|
||||||
(let [key (gobj/get e "key")]
|
(let [key (gobj/get e "key")]
|
||||||
|
(println key-code)
|
||||||
(cond
|
(cond
|
||||||
(editor-handler/surround-by? input "[[" "]]")
|
(editor-handler/surround-by? input "[[" "]]")
|
||||||
(do
|
(do
|
||||||
|
|
Loading…
Reference in New Issue