mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:35:08 +02:00
Fix for keyboard on facebook share pop-up
It was a div tag with "contenteditable"="true" attribute.
This commit is contained in:
parent
f7516c2b07
commit
3574267382
1 changed files with 12 additions and 1 deletions
|
@ -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 () {
|
||||
|
|
Loading…
Reference in a new issue