mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 23:51:29 -07:00
Extra key mappings: '*' to undo and '#' to redo
This is what I keep expecting on my phone. Implemented in the mid-end since no backend currently uses those keys.
This commit is contained in:
4
midend.c
4
midend.c
@ -958,7 +958,7 @@ static bool midend_really_process_key(midend *me, int x, int y, int button,
|
||||
midend_redraw(me);
|
||||
*handled = true;
|
||||
goto done; /* never animate */
|
||||
} else if (button == 'u' || button == 'U' ||
|
||||
} else if (button == 'u' || button == 'U' || button == '*' ||
|
||||
button == '\x1A' || button == '\x1F' ||
|
||||
button == UI_UNDO) {
|
||||
midend_stop_anim(me);
|
||||
@ -967,7 +967,7 @@ static bool midend_really_process_key(midend *me, int x, int y, int button,
|
||||
if (!midend_undo(me))
|
||||
goto done;
|
||||
*handled = true;
|
||||
} else if (button == 'r' || button == 'R' ||
|
||||
} else if (button == 'r' || button == 'R' || button == '#' ||
|
||||
button == '\x12' || button == '\x19' ||
|
||||
button == UI_REDO) {
|
||||
midend_stop_anim(me);
|
||||
|
Reference in New Issue
Block a user