From 9a2985611cca63ce6d4712eec08c06005dccba16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?An=C4=B1lcan=20G=C3=BClkaya?= <48527900+benanil@users.noreply.github.com> Date: Wed, 6 Dec 2023 06:29:40 +0300 Subject: [PATCH] Backend: Android: Remove Redundant Check (#7093) --- backends/imgui_impl_android.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/imgui_impl_android.cpp b/backends/imgui_impl_android.cpp index 395453606..7dd2afc2e 100644 --- a/backends/imgui_impl_android.cpp +++ b/backends/imgui_impl_android.cpp @@ -183,7 +183,7 @@ int32_t ImGui_ImplAndroid_HandleInputEvent(const AInputEvent* input_event) case AKEY_EVENT_ACTION_UP: { ImGuiKey key = ImGui_ImplAndroid_KeyCodeToImGuiKey(event_key_code); - if (key != ImGuiKey_None && (event_action == AKEY_EVENT_ACTION_DOWN || event_action == AKEY_EVENT_ACTION_UP)) + if (key != ImGuiKey_None) { io.AddKeyEvent(key, event_action == AKEY_EVENT_ACTION_DOWN); io.SetKeyEventNativeData(key, event_key_code, event_scan_code);