diff options
Diffstat (limited to 'chromium/chrome/browser/resources/chromeos/chromevox/host/chrome/braille.js')
-rw-r--r-- | chromium/chrome/browser/resources/chromeos/chromevox/host/chrome/braille.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chromium/chrome/browser/resources/chromeos/chromevox/host/chrome/braille.js b/chromium/chrome/browser/resources/chromeos/chromevox/host/chrome/braille.js index 1b202ade3c2..7683ae8adc8 100644 --- a/chromium/chrome/browser/resources/chromeos/chromevox/host/chrome/braille.js +++ b/chromium/chrome/browser/resources/chromeos/chromevox/host/chrome/braille.js @@ -49,7 +49,7 @@ cvox.ChromeBraille = function() { // within the iframe even though the containing document also has focus. // Don't process the event if this document isn't focused or focus lies in // a descendant. - if (!document.hasFocus() || document.activeElement.tagName == 'IFRAME') { + if (!cvox.ChromeVox.documentHasFocus()) { return; } if (msg['message'] == 'BRAILLE' && msg['args']) { |