mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1224216 - PATCH 01 - Fix browser.getFocusedInput(), r=mounir
This commit is contained in:
parent
523a77c284
commit
68c04d6dc2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user