Bug 1224216 - PATCH 01 - Fix browser.getFocusedInput(), r=mounir

This commit is contained in:
Mark Capella 2016-03-10 18:06:12 -05:00
parent 523a77c284
commit 68c04d6dc2

View File

@ -1460,8 +1460,10 @@ var BrowserApp = {
focused = doc.activeElement;
}
if (focused instanceof HTMLInputElement && focused.mozIsTextField(false))
if (focused instanceof HTMLInputElement &&
(focused.mozIsTextField(false) || focused.type === "number")) {
return focused;
}
if (aOnlyInputElements)
return null;