From af2213858a48ace970f6d62fea6dc4d04325d121 Mon Sep 17 00:00:00 2001 From: Van Date: Wed, 24 Sep 2014 16:49:51 +0800 Subject: [PATCH] tree scroll --- conf/wide.json | 2 +- static/js/hotkeys.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/conf/wide.json b/conf/wide.json index 2c8f53c..e9ac7d6 100644 --- a/conf/wide.json +++ b/conf/wide.json @@ -25,7 +25,7 @@ "E:\\Work\\go\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\1123", "E:\\Work\\go\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\time\\main.go" ], - "CurrentFile": "E:\\Work\\go\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\1123" + "CurrentFile": "E:\\Work\\go\\src\\github.com\\b3log\\wide\\data\\user_workspaces\\admin\\src\\mytest\\time\\main.go" } } ] diff --git a/static/js/hotkeys.js b/static/js/hotkeys.js index 753610a..4567141 100644 --- a/static/js/hotkeys.js +++ b/static/js/hotkeys.js @@ -168,6 +168,8 @@ var hotkeys = { break; } + + event.preventDefault(); }); }, init: function() {