You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-13 13:31:48 +00:00
Allow searching with keyboard input by default in PopupMenu
See discussion in https://github.com/godotengine/godot-proposals/issues/43.
This commit is contained in:
@@ -334,9 +334,6 @@ OptionButton::OptionButton() {
|
||||
popup = memnew(PopupMenu);
|
||||
popup->hide();
|
||||
add_child(popup);
|
||||
// popup->set_pass_on_modal_close_click(false);
|
||||
// popup->set_notify_transform(true);
|
||||
popup->set_allow_search(true);
|
||||
popup->connect("index_pressed", callable_mp(this, &OptionButton::_selected));
|
||||
popup->connect("id_focused", callable_mp(this, &OptionButton::_focused));
|
||||
popup->connect("popup_hide", callable_mp((BaseButton *)this, &BaseButton::set_pressed), varray(false));
|
||||
|
||||
Reference in New Issue
Block a user