From: Andrew Dolgov Date: Sat, 25 Feb 2006 07:47:06 +0000 (+0100) Subject: fix broken hotkeys X-Git-Tag: schema_freeze_for_1.1.4~51 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=2e02b89603d18a438c499871e0ec8a72887913b2;p=tt-rss.git fix broken hotkeys --- diff --git a/functions.js b/functions.js index e71e748e..d7dcd08f 100644 --- a/functions.js +++ b/functions.js @@ -129,11 +129,14 @@ function hotkey_handler(e) { seq = seq + "" + keycode; } - if (seq.match("807371717369")) { - seq = ""; - localPiggieFunction(true); - } else { - localPiggieFunction(false); + if (document.getElementById("piggie")) { + + if (seq.match("807371717369")) { + seq = ""; + localPiggieFunction(true); + } else { + localPiggieFunction(false); + } } if (typeof localHotkeyHandler != 'undefined') {