From 4491560b32aa4a4c1b56a53e1baee2da4841a684 Mon Sep 17 00:00:00 2001 From: Tillsunset <35825944+Tillsunset@users.noreply.github.com> Date: Fri, 9 Dec 2022 11:01:08 -0600 Subject: [PATCH] Add check for backwards delete (#564) --- src/Cafe/OS/libs/swkbd/swkbd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cafe/OS/libs/swkbd/swkbd.cpp b/src/Cafe/OS/libs/swkbd/swkbd.cpp index 847b24c9..3e0149ad 100644 --- a/src/Cafe/OS/libs/swkbd/swkbd.cpp +++ b/src/Cafe/OS/libs/swkbd/swkbd.cpp @@ -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--;