aboutsummaryrefslogtreecommitdiff
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/js/browserOverlay.js2
-rw-r--r--chrome/redirector.html1
2 files changed, 2 insertions, 1 deletions
diff --git a/chrome/js/browserOverlay.js b/chrome/js/browserOverlay.js
index ed1ab73..019505f 100644
--- a/chrome/js/browserOverlay.js
+++ b/chrome/js/browserOverlay.js
@@ -18,7 +18,7 @@ var RedirectorOverlay = {
this.changedPrefs(this.prefs);
this.prefs.addListener(this);
document.addEventListener('keypress', function(event) {
- if ((event.charCode == 114) && event.altKey) { //alt+r
+ if ((RedirectorOverlay.prefs.enableShortcutKey) && (event.charCode == 114) && event.altKey) { //alt+r
RedirectorOverlay.toggleEnabled();
}
}, true);
diff --git a/chrome/redirector.html b/chrome/redirector.html
index 68300c1..eb0baa7 100644
--- a/chrome/redirector.html
+++ b/chrome/redirector.html
@@ -31,6 +31,7 @@
<input type="checkbox" id="enable-redirector" data-pref="enabled" /><label>Enabled</label><br />
<input type="checkbox" id="show-status-bar-icon" data-pref="showStatusBarIcon"/><label>Statusbar icon</label><br />
<input type="checkbox" id="show-context-menu" data-pref="showContextMenu"/><label>Context menu</label><br />
+ <input type="checkbox" id="enable-shortcut-key" data-pref="enableShortcutKey"/><label>Enable/Disable via Alt-r</label><br />
<input type="checkbox" id="enable-debug-output" data-pref="debugEnabled"/><label>Debug output</label><br />
<div class="button-row">
<button id="close">Close</button>