From 4af37cd7225b8c813a6d495a3a1e7d2ea9f1840b Mon Sep 17 00:00:00 2001 From: nightwing Date: Sun, 15 Mar 2015 13:19:06 +0400 Subject: [PATCH] fix #2395 context menu regression in Firefox on mac --- lib/ace/keyboard/textinput.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ace/keyboard/textinput.js b/lib/ace/keyboard/textinput.js index 38fe0923..0bd57eed 100644 --- a/lib/ace/keyboard/textinput.js +++ b/lib/ace/keyboard/textinput.js @@ -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();