mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-06 06:34:35 +00:00
Fixed double-backspace with hardware keyboard on iOS
(cherry picked from commit b7726026f8)
This commit is contained in:
parent
aef5dc0967
commit
259e4fe1a2
1 changed files with 1 additions and 1 deletions
|
|
@ -581,7 +581,7 @@ static void SDLCALL SDL_HideHomeIndicatorHintChanged(void *userdata, const char
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (matchLength < committedText.length) {
|
||||
if (matchLength < committedText.length && !SDL_HasKeyboard()) {
|
||||
size_t deleteLength = SDL_utf8strlen([[committedText substringFromIndex:matchLength] UTF8String]);
|
||||
while (deleteLength > 0) {
|
||||
// Send distinct down and up events for each backspace action
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue