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 ee639a0 commit 2df5178Copy full SHA for 2df5178
src/src/util/shortcuts.js
@@ -2,8 +2,6 @@
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 &&
@@ -13,6 +11,9 @@ define(['jquery'], function ($) {
13
11
require(['src/util/searchBox'], function (searchModule) {
14
12
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