mirror of
https://github.com/profanity-im/profanity.git
synced 2025-01-03 14:57:42 -05:00
Check for KEY_BACKSPACE, works on Ubuntu
This commit is contained in:
parent
5c9061671e
commit
2b0f42be32
@ -85,7 +85,7 @@ void inp_poll_char(int *ch, char *input, int *size)
|
||||
*ch = wgetch(inp_win);
|
||||
|
||||
// if delete pressed, go back and delete it
|
||||
if (*ch == 127) {
|
||||
if (*ch == 127 || *ch == KEY_BACKSPACE) {
|
||||
if (*size > 0) {
|
||||
getyx(inp_win, inp_y, inp_x);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user