Disable keyboard shortcuts if current control is INPUT element

This commit is contained in:
notmasteryet 2011-12-20 20:04:42 -06:00
parent 3a396b4834
commit 5affc0d794

View File

@ -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)