зеркало из https://github.com/mozilla/gecko-dev.git
Bug 701947 - VKB does not appear when tapping into an iframe text box. r=mfinkle
This commit is contained in:
Родитель
c4399cc167
Коммит
ac1dca4d92
|
@ -1618,8 +1618,22 @@ var BrowserEventHandler = {
|
|||
|
||||
_elementReceivesInput: function(aElement) {
|
||||
return aElement instanceof Element &&
|
||||
(kElementsReceivingInput.hasOwnProperty(aElement.tagName.toLowerCase()) ||
|
||||
aElement.contentEditable === "true" || aElement.contentEditable === "");
|
||||
kElementsReceivingInput.hasOwnProperty(aElement.tagName.toLowerCase()) ||
|
||||
this._isEditable(aElement);
|
||||
},
|
||||
|
||||
_isEditable: function(aElement) {
|
||||
let canEdit = false;
|
||||
|
||||
if (aElement.isContentEditable || aElement.designMode == "on") {
|
||||
canEdit = true;
|
||||
} else if (aElement instanceof HTMLIFrameElement && (aElement.contentDocument.body.isContentEditable || aElement.contentDocument.designMode == "on")) {
|
||||
canEdit = true;
|
||||
} else {
|
||||
canEdit = aElement.ownerDocument && aElement.ownerDocument.designMode == "on";
|
||||
}
|
||||
|
||||
return canEdit;
|
||||
},
|
||||
|
||||
_scrollElementBy: function(elem, x, y) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче