Moved commands out to the outer event loop.

This commit is contained in:
Adam Harrison
2021-11-14 15:41:28 -05:00
parent 6f53ee1b69
commit ce2ec9f442
6 changed files with 21 additions and 7 deletions
+3 -1
View File
@@ -922,7 +922,9 @@ function core.on_event(type, ...)
elseif type == "mousemoved" then
core.root_view:on_mouse_moved(...)
elseif type == "mousepressed" then
core.root_view:on_mouse_pressed(...)
if not core.root_view:on_mouse_pressed(...) then
did_keymap = keymap.on_mouse_pressed(...)
end
elseif type == "mousereleased" then
core.root_view:on_mouse_released(...)
elseif type == "mousewheel" then