onkeydown handlers: fix default keyboard events not being blocked if necessary

This commit is contained in:
Andrew Dolgov 2018-12-05 09:11:12 +03:00
parent edd348b16c
commit 85adef06f4
2 changed files with 2 additions and 2 deletions

View File

@ -212,7 +212,7 @@ define(["dojo/_base/declare"], function (declare) {
App.setLoadingProgress(50);
document.onkeydown = (event) => { App.hotkeyHandler(event) };
document.onkeydown = (event) => { return App.hotkeyHandler(event) };
window.setInterval(() => { Headlines.catchupBatched() }, 10 * 1000);
if (!this.getActive()) {

View File

@ -76,7 +76,7 @@ require(["dojo/_base/kernel",
initSecondStage: function() {
this.enableCsrfSupport();
document.onkeydown = (event) => { App.hotkeyHandler(event) };
document.onkeydown = (event) => { return App.hotkeyHandler(event) };
App.setLoadingProgress(50);
Notify.close();