Преглед изворни кода

enhance: polish based on Zhiyuan's suggestion

Tienson Qin пре 3 година
родитељ
комит
9bcfb9783d
1 измењених фајлова са 2 додато и 2 уклоњено
  1. 2 2
      src/main/frontend/components/sidebar.cljs

+ 2 - 2
src/main/frontend/components/sidebar.cljs

@@ -458,8 +458,8 @@
 (defn- hide-context-menu-and-clear-selection
   [e]
   (state/hide-custom-context-menu!)
-  (when (and (not (gobj/get e "shiftKey"))
-             (not (util/meta-key? e)))
+  (when-not (or (gobj/get e "shiftKey")
+                (util/meta-key? e))
     (editor-handler/clear-selection!)))
 
 (rum/defcs ^:large-vars/cleanup-todo sidebar <