I tried to write a user friendly chat extension for mobile devices but got one problem with autocorrect. Description:
If we enter the beginning of the word correctly, then autocorrect will normally complete the word and the input will handle it well.
Example:
- Type “worl”
- Press “world” in the autocorrect line
The game will display word “world” correctly
(on_input received text “world”)
But if at least one letter is incorrectly typed in a word, then:
- Type “wprl”
- Press “world” in the autocorrection line
The game will display word “wprl”
(on_input received text “wprld” and backspaces)
Also after showing keyboard, first letter are received as text, others as marked_text (autocorrect ignores the first letter and advises as if it is not there. Example: hide keyboard, show keyboard, type “wprld”, words in the autocorrect line will appear as if we had written “prld”)
I tracked input in on_input function directly, no third party libraries were used
Should the engine support autocorrect or was it never planned?