mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-20 15:18:08 +02:00
Fixes shortcuts steals from browser - Issue #979
This commit is contained in:
parent
0e906bbaeb
commit
959b419082
1 changed files with 2 additions and 0 deletions
|
@ -937,6 +937,8 @@ window.addEventListener('pagechange', function pagechange(evt) {
|
|||
}, true);
|
||||
|
||||
window.addEventListener('keydown', function keydown(evt) {
|
||||
if (evt.ctrlKey || evt.altKey || evt.shiftKey || evt.metaKey)
|
||||
return;
|
||||
var curElement = document.activeElement;
|
||||
if (curElement && curElement.tagName == 'INPUT')
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue