Updates
This commit is contained in:
@@ -31,6 +31,7 @@ void CheckBox::onKeyEvent(event_t event)
|
||||
TRACE_WINDOWS("%s received event 0x%X", getWindowDebugString().c_str(), event);
|
||||
|
||||
if (event == EVT_KEY_BREAK(KEY_ENTER)) {
|
||||
onKeyPress();
|
||||
setValue(!getValue());
|
||||
invalidate({0, 0, 20, 20});
|
||||
}
|
||||
@@ -43,6 +44,7 @@ void CheckBox::onKeyEvent(event_t event)
|
||||
#if defined(HARDWARE_TOUCH)
|
||||
bool CheckBox::onTouchEnd(coord_t x, coord_t y)
|
||||
{
|
||||
onKeyPress();
|
||||
setValue(!getValue());
|
||||
setFocus();
|
||||
invalidate({0, 0, 20, 20});
|
||||
|
||||
Reference in New Issue
Block a user