mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-22 10:40:00 +08:00
Make Checkbox take focus when clicked (#810)
This commit is contained in:
parent
5112d9139d
commit
65bbb4f0eb
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user