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

@ -94,7 +94,7 @@ private:
toggle_button->set_text(itos(message_count));
toggle_button->set_accessibility_name(TTRGET(p_name));
toggle_button->set_tooltip_text(TTRGET(p_tooltip));
toggle_button->set_focus_mode(FOCUS_NONE);
toggle_button->set_focus_mode(FOCUS_ACCESSIBILITY);
// When toggled call the callback and pass the MessageType this button is for.
toggle_button->connect(SceneStringName(toggled), p_toggled_callback.bind(type));
}