Skip to content
Snippets Groups Projects
Commit f0b0e4ef authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Give the timed event config menu the left/right arrow key treatment

Allows quick traversing through timed events (e.g. for comparison of settings).
parent bb43c70b
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #3014 passed
......@@ -553,13 +553,28 @@ void tevents_cfg()
"external program that performs some type of automated function on the\n"
"system. Use this menu to configure how and when this event will be\n"
"executed.\n"
"\n"
"The left and right arrow keys may be used to cycle through events.\n"
;
sprintf(str,"%s Timed Event",cfg.event[i]->code);
switch(uifc.list(WIN_SAV|WIN_ACT|WIN_L2R|WIN_BOT,0,0,70,&dfltopt,0
uifc_winmode_t wmode = WIN_SAV|WIN_ACT|WIN_L2R|WIN_BOT|WIN_EXTKEYS;
if(i > 0)
wmode |= WIN_LEFTKEY;
if(i + 1 < cfg.total_events)
wmode |= WIN_RIGHTKEY;
switch(uifc.list(wmode,0,0,70,&dfltopt,0
,str,opt)) {
case -1:
done=1;
break;
case -CIO_KEY_LEFT-2:
if(i > 0)
i--;
break;
case -CIO_KEY_RIGHT-2:
if(i + 1 < cfg.total_events)
i++;
break;
case 0:
SAFECOPY(str,cfg.event[i]->code);
uifc.helpbuf=
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment