summary refs log tree commit diff homepage
path: root/freecell.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2021-09-30 20:53:10 -0400
committerJune McEnroe <june@causal.agency>2021-09-30 20:53:10 -0400
commit9a70ae9e8082270889121e3131bed8d608ca95ba (patch)
tree260267c8962345b6b52420e23c44cf6199cb0c59 /freecell.c
parentAdd news of freecell mouse support to menu (diff)
downloadplay-9a70ae9e8082270889121e3131bed8d608ca95ba.tar.gz
play-9a70ae9e8082270889121e3131bed8d608ca95ba.zip
Handle KEY_BACKSPACE in freecell
Diffstat (limited to '')
-rw-r--r--freecell.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/freecell.c b/freecell.c
index 9185870..3855d18 100644
--- a/freecell.c
+++ b/freecell.c
@@ -352,7 +352,7 @@ static void input(void) {
 	switch (tolower(ch)) {
 		break; case 'Q'^'@': quit = true;
 		break; case '\33': srcStack = Stacks;
-		break; case 'u': case '\b': case '\177': undo();
+		break; case 'u': case '\b': case '\177': case KEY_BACKSPACE: undo();
 		break; case '1': case '!': stack = Cell+0;
 		break; case '2': case '@': stack = Cell+1;
 		break; case '3': case '#': stack = Cell+2;