Skip to content

Commit 69eff38

Browse files
committed
Merge pull request mozilla#3660 from maxidirienzo/master
viewer.js: Do not process keyboard shortcuts when focused element is a t...
2 parents 0711d32 + ee5d8ca commit 69eff38

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web/viewer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2693,6 +2693,7 @@ window.addEventListener('keydown', function keydown(evt) {
26932693
// is selected.
26942694
var curElement = document.activeElement || document.querySelector(':focus');
26952695
if (curElement && (curElement.tagName.toUpperCase() === 'INPUT' ||
2696+
curElement.tagName.toUpperCase() === 'TEXTAREA' ||
26962697
curElement.tagName.toUpperCase() === 'SELECT')) {
26972698
// Make sure that the secondary toolbar is closed when Escape is pressed.
26982699
if (evt.keyCode !== 27) { // 'Esc'

0 commit comments

Comments
 (0)