mirror of https://github.com/logseq/logseq
enhance(ux): pointer down to trigger the hide context menu and block selections
parent
45150c0f05
commit
5b0051adef
|
@ -878,7 +878,7 @@
|
|||
rum/reactive
|
||||
(mixins/event-mixin
|
||||
(fn [state]
|
||||
(mixins/listen state js/window "click" hide-context-menu-and-clear-selection)
|
||||
(mixins/listen state js/window "pointerdown" hide-context-menu-and-clear-selection)
|
||||
(mixins/listen state js/window "keydown"
|
||||
(fn [e]
|
||||
(when (= 27 (.-keyCode e))
|
||||
|
|
Loading…
Reference in New Issue