mirror of
https://github.com/logseq/logseq.git
synced 2026-05-04 02:46:45 +00:00
enhance(ux): pointer down to trigger the hide context menu and block selections
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user