浏览代码

Fix shift+click on all pages launching a new window

Matt Lilley 2 年之前
父节点
当前提交
0827a529f7
共有 1 个文件被更改,包括 1 次插入0 次删除
  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!