kopia lustrzana https://github.com/OpenRTX/OpenRTX
Fixed backspacing text input so that it reads the char backspaced correctly.
rodzic
11132e4949
commit
a1d782b16c
|
@ -1053,12 +1053,15 @@ static void _ui_textInputConfirm(char *buf)
|
|||
|
||||
static void _ui_textInputDel(char *buf)
|
||||
{
|
||||
// announce the char about to be backspaced.
|
||||
if(buf[ui_state.input_position])
|
||||
vp_announceInputChar(buf[ui_state.input_position]);
|
||||
|
||||
buf[ui_state.input_position] = '\0';
|
||||
// Move back input cursor
|
||||
if(ui_state.input_position > 0)
|
||||
{
|
||||
ui_state.input_position--;
|
||||
vp_announceInputChar(buf[ui_state.input_position]);
|
||||
// If we deleted the initial character, reset starting condition
|
||||
}
|
||||
else
|
||||
|
|
Ładowanie…
Reference in New Issue