summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal/web/bug_modal.js
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/BugModal/web/bug_modal.js')
-rw-r--r--extensions/BugModal/web/bug_modal.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/extensions/BugModal/web/bug_modal.js b/extensions/BugModal/web/bug_modal.js
index f39e48575..1eb90f2df 100644
--- a/extensions/BugModal/web/bug_modal.js
+++ b/extensions/BugModal/web/bug_modal.js
@@ -713,6 +713,18 @@ $(function() {
}
})
.change();
+
+ // hotkeys
+ $('body').hotkey('e', function() {
+ if ($('#cancel-btn:visible').length == 0) {
+ $('#mode-btn').click();
+ }
+ } );
+ $('body').hotkey('escape', function() {
+ if ($('#cancel-btn:visible').length != 0) {
+ $('#cancel-btn').click();
+ }
+ } );
});
function confirmUnsafeURL(url) {