aboutsummaryrefslogtreecommitdiffstats
path: root/background_page.html
diff options
context:
space:
mode:
Diffstat (limited to 'background_page.html')
-rw-r--r--background_page.html12
1 files changed, 9 insertions, 3 deletions
diff --git a/background_page.html b/background_page.html
index 26941cc8..f1bf450a 100644
--- a/background_page.html
+++ b/background_page.html
@@ -314,9 +314,15 @@
}
function handleKeyDown(key, port) {
- console.log("checking keyQueue: [", keyQueue + key, "]");
- keyQueue = checkKeyQueue(keyQueue + key, port.tab.id);
- console.log("new KeyQueue: " + keyQueue);
+ if (key == "<ESC>") {
+ console.log("clearing keyQueue");
+ keyQueue = ""
+ }
+ else {
+ console.log("checking keyQueue: [", keyQueue + key, "]");
+ keyQueue = checkKeyQueue(keyQueue + key, port.tab.id);
+ console.log("new KeyQueue: " + keyQueue);
+ }
}
function checkKeyQueue(keysToCheck, tabId) {