summaryrefslogtreecommitdiffstats
path: root/extensions/BugModal
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2015-04-20 10:27:24 +0200
committerByron Jones <glob@mozilla.com>2015-04-20 10:27:24 +0200
commit5fef5fc8064b850d4339ec50a9d10a5a72fe817e (patch)
tree6ecb6ca90b992f5615241c60d997793838deba65 /extensions/BugModal
parenta6f7795a0460db0ad1ef0ffcfb7e3725c0e0fd7f (diff)
downloadbugzilla-5fef5fc8064b850d4339ec50a9d10a5a72fe817e.tar.gz
bugzilla-5fef5fc8064b850d4339ec50a9d10a5a72fe817e.tar.xz
Bug 1155869: Ctrl+e is consumed by Edit button and cursor doesn't move to the end of the line.
Diffstat (limited to 'extensions/BugModal')
-rw-r--r--extensions/BugModal/web/bug_modal.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/extensions/BugModal/web/bug_modal.js b/extensions/BugModal/web/bug_modal.js
index 87d173680..c96267e14 100644
--- a/extensions/BugModal/web/bug_modal.js
+++ b/extensions/BugModal/web/bug_modal.js
@@ -736,6 +736,9 @@ $(function() {
.keydown(function(event) {
if (!(event.ctrlKey || event.metaKey))
return;
+ // don't conflict with text input shortcut
+ if (document.activeElement.nodeNode == 'INPUT' || document.activeElement.nodeName == 'TEXTAREA')
+ return;
if (String.fromCharCode(event.which).toLowerCase() == 'e') {
if ($('#cancel-btn:visible').length == 0) {
event.preventDefault();