From 948c33c5a9d2bdfd3adfe816a7d4697e3b7d79e8 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 29 Aug 2005 11:12:05 +0000 Subject: Backspace and Delete keys now function like Space in Solo. [originally from svn r6237] --- solo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'solo.c') diff --git a/solo.c b/solo.c index ac98afd..1d4425a 100644 --- a/solo.c +++ b/solo.c @@ -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; /* -- cgit v1.1