Handle KEY_RECLICK events generated by ScreenManager

This commit is contained in:
Hisham Muhammad
2015-08-27 18:42:35 -03:00
parent f585fc9825
commit f6c31eeaf5
4 changed files with 7 additions and 0 deletions

View File

@ -6,6 +6,7 @@ in the source distribution for its full text.
*/
#include "AffinityPanel.h"
#include "CRT.h"
#include "CheckItem.h"
@ -23,6 +24,7 @@ static HandlerResult AffinityPanel_eventHandler(Panel* this, int ch) {
CheckItem* selected = (CheckItem*) Panel_getSelected(this);
switch(ch) {
case KEY_MOUSE:
case KEY_RECLICK:
case ' ':
CheckItem_set(selected, ! (CheckItem_get(selected)) );
return HANDLED;