Make Checkbox take focus when clicked (#810)

This commit is contained in:
rio 2024-01-17 11:21:32 -06:00 committed by ArthurSonzogni
parent 6039aedfcc
commit c8c3f8311e
No known key found for this signature in database
GPG Key ID: 41D98248C074CD6C

View File

@ -73,6 +73,7 @@ class CheckboxBase : public ComponentBase, public CheckboxOption {
event.mouse().motion == Mouse::Pressed) { event.mouse().motion == Mouse::Pressed) {
*checked = !*checked; *checked = !*checked;
on_change(); on_change();
TakeFocus();
return true; return true;
} }