arogue5: fix backspace key.
This commit is contained in:
parent
9506edfdc4
commit
6b4b35ba1e
2 changed files with 4 additions and 1 deletions
|
|
@ -1193,6 +1193,9 @@ md_readchar(WINDOW *win)
|
||||||
case ALT_PAD7 : ch = MOD_MOVE('Y'); break;
|
case ALT_PAD7 : ch = MOD_MOVE('Y'); break;
|
||||||
case ALT_PAD8 : ch = MOD_MOVE('K'); break;
|
case ALT_PAD8 : ch = MOD_MOVE('K'); break;
|
||||||
case ALT_PAD9 : ch = MOD_MOVE('U'); break;
|
case ALT_PAD9 : ch = MOD_MOVE('U'); break;
|
||||||
|
#endif
|
||||||
|
#ifdef KEY_BACKSPACE
|
||||||
|
case KEY_BACKSPACE: ch = md_erasechar(); break;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -223,7 +223,7 @@ WINDOW *win;
|
||||||
* loop reading in the string, and put it in a temporary buffer
|
* loop reading in the string, and put it in a temporary buffer
|
||||||
*/
|
*/
|
||||||
for (sp = buf;
|
for (sp = buf;
|
||||||
(c = wgetch(win)) != '\n' &&
|
(c = md_readchar(win)) != '\n' &&
|
||||||
c != '\r' &&
|
c != '\r' &&
|
||||||
c != '\033' &&
|
c != '\033' &&
|
||||||
c != '\007' &&
|
c != '\007' &&
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue