kopia lustrzana https://github.com/c9/core
fix ace not getting focus on mousedown when iframe is focused
rodzic
5037041a51
commit
4f4a78d6ed
|
@ -53,6 +53,8 @@ var MouseHandler = function(editor) {
|
||||||
if (!document.hasFocus || !document.hasFocus())
|
if (!document.hasFocus || !document.hasFocus())
|
||||||
window.focus();
|
window.focus();
|
||||||
editor.focus();
|
editor.focus();
|
||||||
|
if (!editor.isFocused())
|
||||||
|
window.focus();
|
||||||
};
|
};
|
||||||
|
|
||||||
var mouseTarget = editor.renderer.getMouseEventTarget();
|
var mouseTarget = editor.renderer.getMouseEventTarget();
|
||||||
|
|
Ładowanie…
Reference in New Issue