mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-14 01:25:56 +00:00
display active hotkey prefix on screen
This commit is contained in:
22
functions.js
22
functions.js
@@ -2169,3 +2169,25 @@ function html5AudioOrFlash(type) {
|
||||
}
|
||||
}
|
||||
} */
|
||||
|
||||
function hotkey_prefix_timeout() {
|
||||
try {
|
||||
|
||||
var date = new Date();
|
||||
var ts = Math.round(date.getTime() / 1000);
|
||||
|
||||
if (hotkey_prefix_pressed && ts - hotkey_prefix_pressed >= 5) {
|
||||
debug("hotkey_prefix seems to be stuck, aborting");
|
||||
hotkey_prefix_pressed = false;
|
||||
hotkey_prefix = false;
|
||||
Element.hide('cmdline');
|
||||
}
|
||||
|
||||
setTimeout("hotkey_prefix_timeout()", 1000);
|
||||
|
||||
} catch (e) {
|
||||
exception_error("hotkey_prefix_timeout", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user