relax keyboard blocking condition #899

edit
Hakim El Hattab 2014-05-17 16:00:40 +02:00
parent 252200f9f3
commit c974756326
1 changed files with 1 additions and 2 deletions

View File

@ -3213,8 +3213,7 @@
// Check if there's a focused element that could be using
// the keyboard
var activeElement = document.activeElement;
var hasFocus = !!( document.activeElement && ( document.activeElement.type || document.activeElement.href || document.activeElement.contentEditable !== 'inherit' ) );
var hasFocus = !!( document.activeElement && ( document.activeElement.type || document.activeElement.contentEditable !== 'inherit' ) );
// Disregard the event if there's a focused element or a
// keyboard modifier key is present