mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-08 03:47:32 +00:00
2df8aee335
The UITextField protocol function: "textField: shouldChangeCharactersInRange: replacementString:" was sometimes called with empty replacementStrings on key press releases on keyboard. That triggered a backspace keyboard char to be sent which caused problems when trying to remap actions to other keyboard keys. No matter which key you were pressing the resulting key would always be the backspace key. Only handle text input using the UITextField protocol function when the replacement string isn't empty. Handle all deletes through the UITextInput protocol function "deleteBackword". This has been tested in both cases when the UITextField is empty (but GUI text field has text) and when the UITextField has text (which has been added using the SoftKeyboard). It has also been tested on Apple TV where a software keyboard is shown with a big text field.