mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Disable keyboard shortcuts if current control is INPUT element
This commit is contained in:
parent
3a396b4834
commit
5affc0d794
1 changed files with 2 additions and 0 deletions
|
@ -964,6 +964,8 @@ window.addEventListener('pagechange', function pagechange(evt) {
|
|||
|
||||
window.addEventListener('keydown', function keydown(evt) {
|
||||
var curElement = document.activeElement;
|
||||
if (curElement && curElement.tagName == 'INPUT')
|
||||
return;
|
||||
var controlsElement = document.getElementById('controls');
|
||||
while (curElement) {
|
||||
if (curElement === controlsElement)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue