diff options
| author | Andrew Dolgov <fox@bah.org.ru> | 2009-10-09 13:14:51 +0400 |
|---|---|---|
| committer | Andrew Dolgov <fox@bah.org.ru> | 2009-10-09 13:14:51 +0400 |
| commit | 584d3e035f616fe89df2a019cdae7ae1eb505719 (patch) | |
| tree | ed0e120b57466ef3639f8df3329628263c715341 /functions.js | |
| parent | f274f2a59a959bb9e16808b54a2b2a80bb3112aa (diff) | |
| parent | 78935092b540278e388749b7b0620fce62098fc9 (diff) | |
Merge branch 'master' of /home/fox/public_html/testbox/tt-rss
Diffstat (limited to 'functions.js')
| -rw-r--r-- | functions.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/functions.js b/functions.js index 1e28f1392..6ab23b0f2 100644 --- a/functions.js +++ b/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); + } +} + + |