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

@ -99,7 +99,7 @@ void AnimationTreeEditor::_update_path() {
b->set_toggle_mode(true);
b->set_button_group(group);
b->set_pressed(true);
b->set_focus_mode(FOCUS_NONE);
b->set_focus_mode(FOCUS_ACCESSIBILITY);
b->connect(SceneStringName(pressed), callable_mp(this, &AnimationTreeEditor::_path_button_pressed).bind(-1));
path_hb->add_child(b);
for (int i = 0; i < button_path.size(); i++) {
@ -110,7 +110,7 @@ void AnimationTreeEditor::_update_path() {
b->set_button_group(group);
path_hb->add_child(b);
b->set_pressed(true);
b->set_focus_mode(FOCUS_NONE);
b->set_focus_mode(FOCUS_ACCESSIBILITY);
b->connect(SceneStringName(pressed), callable_mp(this, &AnimationTreeEditor::_path_button_pressed).bind(i));
}
}