aboutsummaryrefslogtreecommitdiff
path: root/chrome/code/browserOverlay.xul.js
diff options
context:
space:
mode:
authorEinar Egilsson2011-08-26 16:55:21 +0200
committerEinar Egilsson2011-08-26 16:55:21 +0200
commit9b57efe67dd9f16ab30886182b6591b589c29bbf (patch)
treea51c4471b1ed692c0ccbc0b8ffd44dcb5988eafd /chrome/code/browserOverlay.xul.js
parente3b36411d27c6fa6575b386738f9bfd3d582c50a (diff)
Added close button + alt+r shortcut to toggle enabled
Diffstat (limited to 'chrome/code/browserOverlay.xul.js')
-rw-r--r--chrome/code/browserOverlay.xul.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/code/browserOverlay.xul.js b/chrome/code/browserOverlay.xul.js
index 0d2f46e..d4df3b9 100644
--- a/chrome/code/browserOverlay.xul.js
+++ b/chrome/code/browserOverlay.xul.js
@@ -17,6 +17,11 @@ var RedirectorOverlay = {
this.prefs = new RedirectorPrefs();
this.changedPrefs(this.prefs);
this.prefs.addListener(this);
+ document.addEventListener('keypress', function(event) {
+ if ((event.charCode == 114) && event.altKey) { //alt+r
+ RedirectorOverlay.toggleEnabled();
+ }
+ }, true);
} catch(e) {
if (this.strings) {
alert(this.strings.getString("initError") + "\n\n" + e);