mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
Focus EventListener when InputEventConfigurationDialog is opened.
This commit is contained in:
parent
fd4572cc45
commit
8678e4d34f
3 changed files with 17 additions and 4 deletions
|
@ -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")));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue