diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-03 21:10:47 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-03 21:10:47 +0100 |
commit | 879b4d9c629b59388caa202bfd72e1ca1c5992fa (patch) | |
tree | 60d654b7a30b4091c8cd0b098aebbe74c61eac0c /editor/events.cpp | |
parent | f9ada1a260aa978261512573c73f00987a4f875b (diff) |
a
Diffstat (limited to 'editor/events.cpp')
-rw-r--r-- | editor/events.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/events.cpp b/editor/events.cpp index 77d9db11..cc1dbb3d 100644 --- a/editor/events.cpp +++ b/editor/events.cpp @@ -189,7 +189,7 @@ void app::on_key_up_down(const key_event& event, bool is_down) noexcept auto [x, mods] = resolve_keybinding(event.key, event.mods); static_assert(key_GLOBAL >= key_NO_REPEAT); - if (x == key_COUNT && (is_down ? _imgui->handleKeyPressEvent(e) : _imgui->handleKeyReleaseEvent(e)) || + if ((x == key_COUNT || x < key_GLOBAL) && (is_down ? _imgui->handleKeyPressEvent(e) : _imgui->handleKeyReleaseEvent(e)) || (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) |