From 2bdabe31cf42b34f8d7bb6015c383482cfb5d068 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 20 Dec 2009 10:01:57 +0000 Subject: Jonas Koelker points out that the backspace key didn't work in GTK Guess, because Guess expected ^H whereas GTK generated ^?. Other puzzles that use Backspace do it by being prepared to see either, which seems wasteful. Now the midend normalises both into ^H, so front ends can generate whichever they like while puzzles can safely just look for ^H. [originally from svn r8786] --- solo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'solo.c') diff --git a/solo.c b/solo.c index 0970eda..3d3fa83 100644 --- a/solo.c +++ b/solo.c @@ -4551,13 +4551,13 @@ static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds, ((button >= '0' && button <= '9' && button - '0' <= cr) || (button >= 'a' && button <= 'z' && button - 'a' + 10 <= cr) || (button >= 'A' && button <= 'Z' && button - 'A' + 10 <= cr) || - button == CURSOR_SELECT2 || button == '\010' || button == '\177')) { + button == CURSOR_SELECT2 || button == '\b')) { int n = button - '0'; if (button >= 'A' && button <= 'Z') n = button - 'A' + 10; if (button >= 'a' && button <= 'z') n = button - 'a' + 10; - if (button == CURSOR_SELECT2 || button == '\010' || button == '\177') + if (button == CURSOR_SELECT2 || button == '\b') n = 0; /* -- cgit v1.1