Disable keyboard shortcuts if current control is INPUT element
This commit is contained in:
parent
3a396b4834
commit
5affc0d794
@ -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…
Reference in New Issue
Block a user