From 2e02b89603d18a438c499871e0ec8a72887913b2 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 25 Feb 2006 08:47:06 +0100 Subject: [PATCH] fix broken hotkeys --- functions.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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') { -- 2.39.5