Android autocorrect

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:

  1. Type “worl”
  2. 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:

  1. Type “wprl”
  2. 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?

Good question. I’m actually not quite sure. I would have thought that it should work out of the box, but it could be that we aren’t reacting to all input events.