From 78935092b540278e388749b7b0620fce62098fc9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 9 Oct 2009 13:13:57 +0400 Subject: [PATCH] display active hotkey prefix on screen --- functions.js | 22 ++++++++++++++++++++++ images/shadow_dark.png | Bin 2761 -> 141 bytes prefs.js | 16 ++++++++++++++++ prefs.php | 2 ++ tt-rss.css | 12 ++++++++++++ tt-rss.js | 26 +++++++------------------- tt-rss.php | 2 ++ 7 files changed, 61 insertions(+), 19 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); + } +} + + diff --git a/images/shadow_dark.png b/images/shadow_dark.png index a300e9492b1371f6e8d79ae3d1f2ddd17c4092ae..3a26b2a5c4bf7613bb373921a74a6fd504b9d2bf 100644 GIT binary patch delta 93 zcmX>p+RHdWMTW6B$lZxy-8q?;3=9lxN#5=*4F5rJ!QSPQC--wnn6j66`ns~;VC5GU u=h={77XVbo>*?Yc!f`!0AtB)gKLf)Nh64u-r&j_c7(8A5T-G@yGywpN0Ufgd delta 2732 zcmV;d3RCrs0m&7RB!2{FK}|sb0I`n?{9y$E018rRLqkwWLqi}?a&Km7Y-IodcmbW3 zcTiN>5{J*dcXA-jFa!xh&N&T9as~;KMPZm3UtJ?nK)OWgnr%s>lzJFC00E%xQUyupQ0FWUN z3B!Ecnb9$^Ong6p0TJMU1psVLPFB!T?{I*cpO*(S2Ng+p-rn8;kYsn$#5aV=RCT#; zI^ti{oKWu+pTB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