Skip to content
This repository was archived by the owner on May 16, 2019. It is now read-only.

Commit 6a998eb

Browse files
committed
fix putting prevent default in the wrong place
1 parent e8da159 commit 6a998eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

js/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ $(window).bind('keydown', function(e) {
198198
}
199199

200200
if (ctrl) {
201-
e.preventDefault();
202201
switch (char) {
203202
case config.keyShortcuts.undo:
203+
e.preventDefault();
204204
//run undo programmatically to avoid crash
205205
document.execCommand('undo');
206206
break;
@@ -236,6 +236,7 @@ $(window).bind('keydown', function(e) {
236236
window.obEventBus.trigger('saveCurrentForm');
237237
break;
238238
case config.keyShortcuts.refresh:
239+
e.preventDefault();
239240
Backbone.history.loadUrl();
240241
break;
241242
case config.keyShortcuts.restart:

0 commit comments

Comments
 (0)