mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-09-18 09:08:08 +08:00
Make DEL to be a special character.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user