Fixing checkbox keyboard handler

This commit is contained in:
Joel Bodenmann 2015-10-19 07:24:30 +02:00
parent 288e928ade
commit 49c5300ccd

View File

@ -60,7 +60,7 @@ static void SendCheckboxEvent(GWidgetObject *gw) {
{ {
// Only react on KEYDOWN events. Ignore KEYUP events. // Only react on KEYDOWN events. Ignore KEYUP events.
if (pke->keystate & GKEYSTATE_KEYUP) { if (pke->keystate & GKEYSTATE_KEYUP) {
break; return;
} }
// ENTER and SPACE keys to check/uncheck the checkbox // ENTER and SPACE keys to check/uncheck the checkbox