Skip to content

Commit b774b9e

Browse files
committed
fix: only prevent space key on the document body
Closes: #1178
1 parent 88f548c commit b774b9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/src/util/shortcuts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ define(['jquery'], function ($) {
1111
require(['src/util/searchBox'], function (searchModule) {
1212
searchModule();
1313
});
14-
} else if (event.key === ' ') {
14+
} else if (event.key === ' ' && event.target === document.body) {
1515
// Avoid scrolling the page. The space key can be used by modules.
1616
event.preventDefault();
1717
}

0 commit comments

Comments
 (0)