mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
fix ace not getting focus on mousedown when iframe is focused
This commit is contained in:
parent
5037041a51
commit
4f4a78d6ed
2
node_modules/ace/lib/ace/mouse/mouse_handler.js
generated
vendored
2
node_modules/ace/lib/ace/mouse/mouse_handler.js
generated
vendored
@ -53,6 +53,8 @@ var MouseHandler = function(editor) {
|
||||
if (!document.hasFocus || !document.hasFocus())
|
||||
window.focus();
|
||||
editor.focus();
|
||||
if (!editor.isFocused())
|
||||
window.focus();
|
||||
};
|
||||
|
||||
var mouseTarget = editor.renderer.getMouseEventTarget();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user