summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-31 21:52:27 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-10-31 21:52:27 +0100
commitbfa3e9a66d28e028fdf69efb79df1b2e47d62bec (patch)
tree1ba1d2f837ae421960085d91ac0b7e5c1757b376
parent292244ab8fe9b4c87f5b4d827b85d9ac50589c25 (diff)
fix no_repeat
-rw-r--r--editor/events.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/events.cpp b/editor/events.cpp
index ccc72217..f9a4dccb 100644
--- a/editor/events.cpp
+++ b/editor/events.cpp
@@ -128,7 +128,7 @@ void app::on_key_up_down(const key_event& event, bool is_down) noexcept
if (x == key_COUNT)
void();
else if (x >= key_NO_REPEAT)
- !event.is_repeated ? do_key(x, mods) : void();
+ is_down && !event.is_repeated ? do_key(x, mods) : void();
else if (is_down ? _imgui.handleKeyPressEvent(e) : _imgui.handleKeyReleaseEvent(e))
clear_non_global_keys();
else {