From 69087caa15f44226171165ccd93c87986a438449 Mon Sep 17 00:00:00 2001 From: Wes Johnston Date: Thu, 13 Jan 2011 08:51:55 -0800 Subject: [PATCH] Bug 621509 - Check for content showing before forwarding keyboard events [r=mfinkle] --- mobile/chrome/content/browser.js | 3 +++ mobile/chrome/content/browser.xul | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/mobile/chrome/content/browser.js b/mobile/chrome/content/browser.js index 90c021595d1b..f3d2870a5d85 100644 --- a/mobile/chrome/content/browser.js +++ b/mobile/chrome/content/browser.js @@ -1684,6 +1684,9 @@ function ContentCustomKeySender(container) { ContentCustomKeySender.prototype = { handleEvent: function handleEvent(aEvent) { + if (Elements.contentShowing.getAttribute("disabled")) + return; + let browser = getBrowser(); if (browser && browser.getAttribute("remote") == "true") { aEvent.stopPropagation(); diff --git a/mobile/chrome/content/browser.xul b/mobile/chrome/content/browser.xul index a34fef074156..6a3ac5319923 100644 --- a/mobile/chrome/content/browser.xul +++ b/mobile/chrome/content/browser.xul @@ -82,7 +82,7 @@