Make DEL to be a special character.

This commit is contained in:
ArthurSonzogni
2019-07-02 23:09:20 +02:00
parent 65e7fae7df
commit e1efcf2d97
3 changed files with 9 additions and 2 deletions

View File

@@ -122,6 +122,9 @@ Event Event::GetEvent(std::function<char()> getchar) {
if (input[0] >= 0 && input[0] < 32) // C0
return Event::Special(input);
if (input[0] == 127) // Delete
return Event::Special(input);
return ParseUTF8(getchar, input);
}