Bug 611303 - [Regression] Cannot input text in search field in about:config [r=mfinkle]
--- a/mobile/chrome/content/browser.js
+++ b/mobile/chrome/content/browser.js
@@ -1571,21 +1571,21 @@ const ContentTouchHandler = {
function ContentCustomKeySender(container) {
container.addEventListener("keypress", this, false);
container.addEventListener("keyup", this, false);
container.addEventListener("keydown", this, false);
}
ContentCustomKeySender.prototype = {
handleEvent: function handleEvent(aEvent) {
- aEvent.stopPropagation();
- aEvent.preventDefault();
-
let browser = getBrowser();
- if (browser) {
+ if (browser && browser.getAttribute("remote") == "true") {
+ aEvent.stopPropagation();
+ aEvent.preventDefault();
+
browser.messageManager.sendAsyncMessage("Browser:KeyEvent", {
type: aEvent.type,
keyCode: aEvent.keyCode,
charCode: (aEvent.type != "keydown") ? aEvent.charCode : null,
modifiers: this._parseModifiers(aEvent)
});
}
},