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
No known key found for this signature in database
GPG key ID: 8413210218EF35D2
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);