diff options
| author | Simon Tatham <anakin@pobox.com> | 2005-08-29 11:12:05 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2005-08-29 11:12:05 +0000 |
| commit | 948c33c5a9d2bdfd3adfe816a7d4697e3b7d79e8 (patch) | |
| tree | d3e6ea47921d077d8323abe61e17fec0e8bb4882 /solo.c | |
| parent | 4d6c8c73373bf7eb1f72b1cf4fbb78a5719ade3f (diff) | |
| download | puzzles-948c33c5a9d2bdfd3adfe816a7d4697e3b7d79e8.zip puzzles-948c33c5a9d2bdfd3adfe816a7d4697e3b7d79e8.tar.gz puzzles-948c33c5a9d2bdfd3adfe816a7d4697e3b7d79e8.tar.bz2 puzzles-948c33c5a9d2bdfd3adfe816a7d4697e3b7d79e8.tar.xz | |
Backspace and Delete keys now function like Space in Solo.
[originally from svn r6237]
Diffstat (limited to 'solo.c')
| -rw-r--r-- | solo.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2364,13 +2364,13 @@ static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds, ((button >= '1' && button <= '9' && button - '0' <= cr) || (button >= 'a' && button <= 'z' && button - 'a' + 10 <= cr) || (button >= 'A' && button <= 'Z' && button - 'A' + 10 <= cr) || - button == ' ')) { + button == ' ' || button == '\010' || button == '\177')) { int n = button - '0'; if (button >= 'A' && button <= 'Z') n = button - 'A' + 10; if (button >= 'a' && button <= 'z') n = button - 'a' + 10; - if (button == ' ') + if (button == ' ' || button == '\010' || button == '\177') n = 0; /* |