Merge pull request #980 from saebekassebil/fixkeydown
Fixes shortcuts steals from browser - Issue #979
This commit is contained in:
commit
f10a543080
@ -937,6 +937,8 @@ window.addEventListener('pagechange', function pagechange(evt) {
|
|||||||
}, true);
|
}, true);
|
||||||
|
|
||||||
window.addEventListener('keydown', function keydown(evt) {
|
window.addEventListener('keydown', function keydown(evt) {
|
||||||
|
if (evt.ctrlKey || evt.altKey || evt.shiftKey || evt.metaKey)
|
||||||
|
return;
|
||||||
var curElement = document.activeElement;
|
var curElement = document.activeElement;
|
||||||
if (curElement && curElement.tagName == 'INPUT')
|
if (curElement && curElement.tagName == 'INPUT')
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user