parent
bc4bf3d384
commit
08ce7e2563
|
@ -320,7 +320,8 @@ function core.on_event(type, ...)
|
||||||
local mx, my = core.root_view.mouse.x, core.root_view.mouse.y
|
local mx, my = core.root_view.mouse.x, core.root_view.mouse.y
|
||||||
local ok, doc = core.try(core.open_doc, select(1, ...))
|
local ok, doc = core.try(core.open_doc, select(1, ...))
|
||||||
if ok then
|
if ok then
|
||||||
core.root_view:on_mouse_pressed("left", mx, my, 1)
|
local node = core.root_view.root_node:get_child_overlapping_point(mx, my)
|
||||||
|
node:set_active_view(node.active_view)
|
||||||
core.root_view:open_doc(doc)
|
core.root_view:open_doc(doc)
|
||||||
end
|
end
|
||||||
elseif type == "quit" then
|
elseif type == "quit" then
|
||||||
|
|
Loading…
Reference in a new issue