fixed backspace on OS X (and possibly other UNIX)

This commit is contained in:
Ori Kadosh 2014-05-13 00:23:34 +03:00
parent 3429c54af8
commit 91d99e6859

View File

@ -66,7 +66,7 @@ bool input_keyboard_line_event(input_keyboard_line_t *state, uint32_t character,
return true;
}
if (c == '\b')
if (c == '\b' || c == '\x7f') /* 0x7f is ASCII for del */
{
if (state->ptr)
{