Mercurial > hg > early-roguelike
comparison rogue4/mdport.c @ 94:ba9930a7f99d
rogue[345]: fix backspace key in prompts.
md_readchar() mapped KEY_BACKSPACE to CTRL-H, but get_str(), which
handles prompts for strings, only backs up when it receives the erase
character. The key should be mapped to md_erasechar().
This fixes Red Hat Bugzilla #847852.
author | John "Elwin" Edwards |
---|---|
date | Tue, 27 Aug 2013 09:25:30 -0700 |
parents | 3c5682bbf164 |
children | 65f3da34578a |
comparison
equal
deleted
inserted
replaced
93:8f7c082fde46 | 94:ba9930a7f99d |
---|---|
1304 case ALT_PAD6 : ch = MOD_MOVE('L'); break; | 1304 case ALT_PAD6 : ch = MOD_MOVE('L'); break; |
1305 case ALT_PAD7 : ch = MOD_MOVE('Y'); break; | 1305 case ALT_PAD7 : ch = MOD_MOVE('Y'); break; |
1306 case ALT_PAD8 : ch = MOD_MOVE('K'); break; | 1306 case ALT_PAD8 : ch = MOD_MOVE('K'); break; |
1307 case ALT_PAD9 : ch = MOD_MOVE('U'); break; | 1307 case ALT_PAD9 : ch = MOD_MOVE('U'); break; |
1308 #endif | 1308 #endif |
1309 #ifdef KEY_BACKSPACE | |
1310 case KEY_BACKSPACE: ch = md_erasechar(); break; | |
1311 #endif | |
1309 } | 1312 } |
1310 | 1313 |
1311 break; | 1314 break; |
1312 } | 1315 } |
1313 | 1316 |