Explorar o código

Fix shift+click on all pages launching a new window

Matt Lilley %!s(int64=2) %!d(string=hai) anos
pai
achega
0827a529f7
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/main/frontend/components/page.cljs

+ 1 - 0
src/main/frontend/components/page.cljs

@@ -1051,6 +1051,7 @@
                                              (swap! *checks update idx not))})]
 
                 [:td.name [:a {:on-click (fn [e]
+                                          (.preventDefault e)
                                            (let [repo (state/get-current-repo)]
                                              (when (gobj/get e "shiftKey")
                                                (state/sidebar-add-block!