Focus EventListener when InputEventConfigurationDialog is opened.

This commit is contained in:
Eric M 2022-10-14 16:58:36 +10:00
parent fd4572cc45
commit 8678e4d34f
3 changed files with 17 additions and 4 deletions

View file

@ -533,6 +533,10 @@ String InputEventConfigurationDialog::_get_device_string(int p_device) const {
void InputEventConfigurationDialog::_notification(int p_what) {
switch (p_what) {
case NOTIFICATION_VISIBILITY_CHANGED: {
event_listener->grab_focus();
} break;
case NOTIFICATION_ENTER_TREE:
case NOTIFICATION_THEME_CHANGED: {
input_list_search->set_right_icon(input_list_search->get_theme_icon(SNAME("Search"), SNAME("EditorIcons")));