Add check for backwards delete (#564)

This commit is contained in:
Tillsunset
2022-12-09 18:01:08 +01:00
committed by GitHub
parent 5a143c7b4b
commit 4491560b32
+1 -1
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--;