mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Fix double emission of NOTIFICATION_WM_GO_BACK_REQUEST
This commit is contained in:
parent
aa65940a85
commit
c327b5797e
1 changed files with 1 additions and 1 deletions
|
@ -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<DisplayServerAndroid>(DisplayServer::get_singleton())) {
|
||||
dsa->send_window_event(DisplayServer::WINDOW_EVENT_GO_BACK_REQUEST, true);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue