We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1aa48a commit 3abc254Copy full SHA for 3abc254
src/src/util/shortcuts.js
@@ -2,6 +2,8 @@
2
3
define(['jquery'], function ($) {
4
$(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.
7
if (
8
(event.ctrlKey || event.metaKey) &&
9
!event.altKey &&
@@ -11,9 +13,6 @@ define(['jquery'], function ($) {
11
13
require(['src/util/searchBox'], function (searchModule) {
12
14
searchModule();
15
});
- } else if (event.key === ' ') {
- // Avoid scrolling the page. The space key can be used by modules.
16
- event.preventDefault();
17
}
18
19
0 commit comments