mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 15:05:56 +00:00
onkeydown handlers: fix default keyboard events not being blocked if necessary
This commit is contained in:
@@ -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()) {
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user