mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-10 10:08:18 +00:00
fixed bug where the backspace doesn't work like it should under mac os x
This commit is contained in:
parent
fa9002f9b4
commit
581ec394f6
|
@ -29,7 +29,8 @@ void LINEINPUT::process_input(INPUT_EVENT e)
|
|||
char c = e.ch;
|
||||
int k = e.key;
|
||||
|
||||
if (!(c >= 0 && c < 32))
|
||||
// 127 is produced on Mac OS X and corresponds to the delete key
|
||||
if (!(c >= 0 && c < 32) && c != 127)
|
||||
{
|
||||
if (len < sizeof(str) - 1 && cursor_pos < sizeof(str) - 1)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue