You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Change editor button focus mode to FOCUS_ACCESSIBILITY.
This commit is contained in:
@@ -1152,7 +1152,7 @@ HBoxContainer *EditorAssetLibrary::_make_pages(int p_page, int p_page_count, int
|
||||
first->connect(SceneStringName(pressed), callable_mp(this, &EditorAssetLibrary::_search).bind(0));
|
||||
} else {
|
||||
first->set_disabled(true);
|
||||
first->set_focus_mode(Control::FOCUS_NONE);
|
||||
first->set_focus_mode(Control::FOCUS_ACCESSIBILITY);
|
||||
}
|
||||
hbc->add_child(first);
|
||||
|
||||
@@ -1163,7 +1163,7 @@ HBoxContainer *EditorAssetLibrary::_make_pages(int p_page, int p_page_count, int
|
||||
prev->connect(SceneStringName(pressed), callable_mp(this, &EditorAssetLibrary::_search).bind(p_page - 1));
|
||||
} else {
|
||||
prev->set_disabled(true);
|
||||
prev->set_focus_mode(Control::FOCUS_NONE);
|
||||
prev->set_focus_mode(Control::FOCUS_ACCESSIBILITY);
|
||||
}
|
||||
hbc->add_child(prev);
|
||||
hbc->add_child(memnew(VSeparator));
|
||||
@@ -1175,7 +1175,7 @@ HBoxContainer *EditorAssetLibrary::_make_pages(int p_page, int p_page_count, int
|
||||
current->set_theme_type_variation("PanelBackgroundButton");
|
||||
if (i == p_page) {
|
||||
current->set_disabled(true);
|
||||
current->set_focus_mode(Control::FOCUS_NONE);
|
||||
current->set_focus_mode(Control::FOCUS_ACCESSIBILITY);
|
||||
} else {
|
||||
current->connect(SceneStringName(pressed), callable_mp(this, &EditorAssetLibrary::_search).bind(i));
|
||||
}
|
||||
@@ -1189,7 +1189,7 @@ HBoxContainer *EditorAssetLibrary::_make_pages(int p_page, int p_page_count, int
|
||||
next->connect(SceneStringName(pressed), callable_mp(this, &EditorAssetLibrary::_search).bind(p_page + 1));
|
||||
} else {
|
||||
next->set_disabled(true);
|
||||
next->set_focus_mode(Control::FOCUS_NONE);
|
||||
next->set_focus_mode(Control::FOCUS_ACCESSIBILITY);
|
||||
}
|
||||
hbc->add_child(memnew(VSeparator));
|
||||
hbc->add_child(next);
|
||||
@@ -1201,7 +1201,7 @@ HBoxContainer *EditorAssetLibrary::_make_pages(int p_page, int p_page_count, int
|
||||
last->connect(SceneStringName(pressed), callable_mp(this, &EditorAssetLibrary::_search).bind(p_page_count - 1));
|
||||
} else {
|
||||
last->set_disabled(true);
|
||||
last->set_focus_mode(Control::FOCUS_NONE);
|
||||
last->set_focus_mode(Control::FOCUS_ACCESSIBILITY);
|
||||
}
|
||||
hbc->add_child(last);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user