fix #2395 context menu regression in Firefox on mac

This commit is contained in:
nightwing 2015-03-15 13:19:06 +04:00
commit 4af37cd722

View file

@ -76,6 +76,7 @@ var TextInput = function(parentNode, host) {
resetSelection();
});
this.focus = function() {
if (tempStyle) return text.focus();
text.style.position = "fixed";
text.style.top = "-1000px";
text.focus();