From c327b5797e0861a19408c0e04af1bc3b8fcb84f4 Mon Sep 17 00:00:00 2001 From: Anish Mishra Date: Sun, 12 Jan 2025 14:58:11 +0530 Subject: [PATCH] Fix double emission of NOTIFICATION_WM_GO_BACK_REQUEST --- platform/android/android_input_handler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/android/android_input_handler.cpp b/platform/android/android_input_handler.cpp index 41edc352766..9a5af7a349d 100644 --- a/platform/android/android_input_handler.cpp +++ b/platform/android/android_input_handler.cpp @@ -130,7 +130,7 @@ void AndroidInputHandler::process_key_event(int p_physical_keycode, int p_unicod _set_key_modifier_state(ev, keycode); - if (p_physical_keycode == AKEYCODE_BACK) { + if (p_physical_keycode == AKEYCODE_BACK && p_pressed) { if (DisplayServerAndroid *dsa = Object::cast_to(DisplayServer::get_singleton())) { dsa->send_window_event(DisplayServer::WINDOW_EVENT_GO_BACK_REQUEST, true); }