#487 Handled Space and Enter events for Radiobox (#491)

Return true when an event a RadioBox is state change due to pressing Return or space.

Co-authored-by: ArthurSonzogni <sonzogniarthur@gmail.com>
This commit is contained in:
jdfa
2022-10-01 14:34:15 +03:00
committed by GitHub
parent c61fadd8ec
commit 5ba29a9539
2 changed files with 182 additions and 83 deletions

View File

@@ -103,8 +103,8 @@ class RadioboxBase : public ComponentBase {
if (event == Event::Character(' ') || event == Event::Return) {
*selected_ = hovered_;
//*selected_ = focused_entry();
option_->on_change();
return true;
}
return false;