Browse Source

Fix shift+click on all pages launching a new window

Matt Lilley 2 years ago
parent
commit
0827a529f7
1 changed files with 1 additions and 0 deletions
  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!