Skip to content

Commit 3abc254

Browse files
committed
Revert "fix: do not scroll the page when space key is pressed"
This reverts commit 2df5178.
1 parent f1aa48a commit 3abc254

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/src/util/shortcuts.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
define(['jquery'], function ($) {
44
$(document).keydown(function (event) {
5+
// If Control or Command key is pressed and the S key is pressed
6+
// run save function. 83 is the key code for S.
57
if (
68
(event.ctrlKey || event.metaKey) &&
79
!event.altKey &&
@@ -11,9 +13,6 @@ define(['jquery'], function ($) {
1113
require(['src/util/searchBox'], function (searchModule) {
1214
searchModule();
1315
});
14-
} else if (event.key === ' ') {
15-
// Avoid scrolling the page. The space key can be used by modules.
16-
event.preventDefault();
1716
}
1817
});
1918
});

0 commit comments

Comments
 (0)