From bfa3e9a66d28e028fdf69efb79df1b2e47d62bec Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Mon, 31 Oct 2022 21:52:27 +0100 Subject: fix no_repeat --- editor/events.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- cgit v1.2.3