mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-07-20 02:21:13 +08:00
Make Checkbox take focus when clicked (#810)
This commit is contained in:
parent
6039aedfcc
commit
c8c3f8311e
@ -73,6 +73,7 @@ class CheckboxBase : public ComponentBase, public CheckboxOption {
|
||||
event.mouse().motion == Mouse::Pressed) {
|
||||
*checked = !*checked;
|
||||
on_change();
|
||||
TakeFocus();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user