Fix for keyboard on facebook share pop-up

It was a div tag with "contenteditable"="true" attribute.
This commit is contained in:
Anthony J. Thibault 2016-09-08 18:00:45 -07:00
parent f7516c2b07
commit 3574267382

View file

@ -13,7 +13,18 @@
var numWarnings = 0;
function shouldRaiseKeyboard() {
return document.activeElement.nodeName == "INPUT" || document.activeElement.nodeName == "TEXTAREA";
if (document.activeElement.nodeName == "INPUT" || document.activeElement.nodeName == "TEXTAREA") {
return true;
} else {
// check for contenteditable attribute
for (var i = 0; i < document.activeElement.attributes.length; i++) {
if (document.activeElement.attributes[i].name === "contenteditable" &&
document.activeElement.attributes[i].value === "true") {
return true;
}
}
return false;
}
};
setInterval(function () {