feat: allow mouseenter to change on-choosen

pull/2387/head
Peng Xiao 2021-07-06 22:07:56 +08:00 committed by Tienson Qin
parent 1880618c61
commit 1cfddafdfe
1 changed files with 1 additions and 0 deletions

View File

@ -372,6 +372,7 @@
(menu-link
{:id (str "ac-" idx)
:class (when chosen? "chosen")
:on-mouse-enter #(reset! current-idx idx)
:on-mouse-down (fn [e]
(util/stop e)
(if (and (gobj/get e "shiftKey") on-shift-chosen)