Skip to content

Commit 5fef5fc

Browse files
committed
Bug 1155869: Ctrl+e is consumed by Edit button and cursor doesn't move to the end of the line.
1 parent a6f7795 commit 5fef5fc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

extensions/BugModal/web/bug_modal.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,9 @@ $(function() {
736736
.keydown(function(event) {
737737
if (!(event.ctrlKey || event.metaKey))
738738
return;
739+
// don't conflict with text input shortcut
740+
if (document.activeElement.nodeNode == 'INPUT' || document.activeElement.nodeName == 'TEXTAREA')
741+
return;
739742
if (String.fromCharCode(event.which).toLowerCase() == 'e') {
740743
if ($('#cancel-btn:visible').length == 0) {
741744
event.preventDefault();

0 commit comments

Comments
 (0)