summaryrefslogtreecommitdiff
path: root/functions.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2006-02-25 08:47:06 +0100
committerAndrew Dolgov <[email protected]>2006-02-25 08:47:06 +0100
commit2e02b89603d18a438c499871e0ec8a72887913b2 (patch)
tree77796950506fb8ea264eeb737e4b3c0df6f71770 /functions.js
parente0a7121ba9b0f73b9a9b4a61c4f525fb02331ead (diff)
fix broken hotkeys
Diffstat (limited to 'functions.js')
-rw-r--r--functions.js13
1 files changed, 8 insertions, 5 deletions
diff --git a/functions.js b/functions.js
index e71e748e9..d7dcd08f4 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') {