Add check for backwards delete (#564)

This commit is contained in:
Tillsunset 2022-12-09 11:01:08 -06:00 committed by GitHub
parent 5a143c7b4b
commit 4491560b32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -568,7 +568,7 @@ void swkbd_inputStringChanged()
void swkbd_keyInput(uint32 keyCode)
{
if (keyCode == 8) // backspace
if (keyCode == 8 || keyCode == 127) // backspace || backwards delete
{
if (swkbdInternalState->formStringLength > 0)
swkbdInternalState->formStringLength--;