mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2024-11-25 04:08:39 +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) {
|
||||
*checked = !*checked;
|
||||
on_change();
|
||||
TakeFocus();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user