1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-08 12:40:44 +00:00

Change editor button focus mode to FOCUS_ACCESSIBILITY.

This commit is contained in:
Pāvels Nadtočajevs
2025-04-23 12:46:50 +03:00
parent 42c7f14422
commit 22b5a2fc5c
31 changed files with 116 additions and 116 deletions

View File

@@ -174,7 +174,7 @@ void AnimationNodeBlendTreeEditor::update_graph() {
if (!read_only) {
Button *delete_button = memnew(Button);
delete_button->set_flat(true);
delete_button->set_focus_mode(FOCUS_NONE);
delete_button->set_focus_mode(FOCUS_ACCESSIBILITY);
delete_button->set_button_icon(get_editor_theme_icon(SNAME("Close")));
delete_button->set_accessibility_name(TTRC("Delete"));
delete_button->connect(SceneStringName(pressed), callable_mp(this, &AnimationNodeBlendTreeEditor::_delete_node_request).bind(E), CONNECT_DEFERRED);