1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

fix certain popup close clicks with popup buttons

This commit is contained in:
Bernhard Liebl
2017-11-22 09:43:40 +01:00
parent d055031c73
commit efc3ffb816
6 changed files with 31 additions and 0 deletions

View File

@@ -111,6 +111,7 @@ MenuButton::MenuButton() {
popup->hide();
add_child(popup);
popup->set_as_toplevel(true);
popup->set_pass_on_modal_close_click(false);
connect("button_up", popup, "call_deferred", make_binds("grab_click_focus"));
set_process_unhandled_key_input(true);
set_action_mode(ACTION_MODE_BUTTON_PRESS);