summaryrefslogtreecommitdiffhomepage
path: root/editor/events.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-10-20 18:37:20 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-10-20 18:37:20 +0200
commit8ac55a6789a9ed7fdd16dfcbde6133948ad632fc (patch)
treefdaa667ea93b3d8136dc3e0fea9a43d0d05f2e99 /editor/events.cpp
parent275cb79a1857fff08ce1b642bbfab6d7377bcaef (diff)
a
Diffstat (limited to 'editor/events.cpp')
-rw-r--r--editor/events.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/events.cpp b/editor/events.cpp
index 83039bcb..b0a9f590 100644
--- a/editor/events.cpp
+++ b/editor/events.cpp
@@ -87,7 +87,7 @@ void app::on_mouse_up_down(const mouse_button_event& event, bool is_down) noexce
if ((cursor.in_imgui = is_down ? _imgui.handleMousePressEvent(e) : _imgui.handleMouseReleaseEvent(e)))
void();
- else if (_editor.mode() == editor_mode::tests && tests_handle_mouse_click(event))
+ else if (_editor.mode() == editor_mode::tests && tests_handle_mouse_click(event, is_down))
void();
else
do_mouse_up_down(button, is_down, fixup_mods(event.mods));
@@ -190,7 +190,7 @@ void app::on_key_up_down(const key_event& event, bool is_down) noexcept
static_assert(key_GLOBAL >= key_NO_REPEAT);
if (x == key_COUNT && (is_down ? _imgui.handleKeyPressEvent(e) : _imgui.handleKeyReleaseEvent(e)) ||
- (x == key_COUNT || x == key_escape) && _editor.mode() == editor_mode::tests && tests_handle_key(event))
+ (x == key_COUNT || x == key_escape) && _editor.mode() == editor_mode::tests && tests_handle_key(event, is_down))
clear_non_global_keys();
else if (x >= key_NO_REPEAT)
is_down && !event.is_repeated ? do_key(x, mods) : void();