Closed Bug 1880002 Opened 1 year ago Closed 1 year ago

control+e doesn't work in Summary field

Categories

(bugzilla.mozilla.org :: User Interface, defect)

Production
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: arai, Assigned: arai)

Details

Attachments

(1 file, 1 obsolete file)

https://github.com/mozilla-bteam/bmo/blob/f03c836dbb1a9e051273d9f2cf1e5bd2ac33bf9d/extensions/BugModal/web/bug_modal.js#L1268

    $(window)
        .keydown(function(event) {
            if (!(event.ctrlKey || event.metaKey))
                return;
            switch(String.fromCharCode(event.which).toLowerCase()) {
                // ctrl+e or meta+e = enter edit mode
                case 'e':
                    if (event.shiftKey)
                        return;
                    // don't conflict with text input shortcut
                    if (document.activeElement.nodeNode == 'INPUT' || document.activeElement.nodeName == 'TEXTAREA')
                        return;

it should check nodeName

Attached file GitHub Pull Request (obsolete) —
Attachment #9379850 - Attachment is obsolete: true
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: