Unverified Commit 840c8f1c by Rémi Verschelde Committed by GitHub

Merge pull request #38811 from Calinou/popupmenu-default-allow-search

Allow searching with keyboard input by default in PopupMenu
parents 55bad664 c9abc631
......@@ -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));
......
......@@ -1442,7 +1442,7 @@ PopupMenu::PopupMenu() {
during_grabbed_click = false;
invalidated_click = false;
allow_search = false;
allow_search = true;
search_time_msec = 0;
search_string = "";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment