- Home /
Mobile Keyboards -- Highlighting all text by default when keyboard is opened (iOS vs. Android)
Hi, I have a Textfield in my game. When the user clicks on it, the iOS or Android keyboard pops up so they can type into it (and continue by pressing return/etc).
The behavior is different:
On IOS, the keyboard opens with the text in it and the cursor is placed at the end, nothing is highlighted. Therefore, if you start typing you append to the text already in the field
On Android, the keyboard opens with the text in it and all the text is highlighted. Therefore, if you start typing you overwrite the existing text -- unless you touch again to place a cursor and turn off the highlight
(Also, on PC and Mac -- the behavior is the same as on Android, the text is highlighted when I mouse click into the textfield, and overwrites unless I click again or use arrow keys to unselect)
I would like to make the behavior the same, and ideally have both keyboards work like the android (auto-highlight the text you are editing).
Is this possible?
--Sam
I doubt it, at least without writing your own platform specific extension code in the platform's environment.
This sounds like platform specific behaviour.