iOS, Safari: open keyboard with setFocus() for Text [message #1785876] |
Sat, 21 April 2018 14:52  |
Eclipse User |
|
|
|
Hi,
when opening the url of a RAP application on iOS (Safari and Firefox), the on-screen keyboard opens if the user taps on a Text widget.
If the same widget gains the focus via program code, e.g. by a call to
widget.setFocus() in some event handler of another widget, it still gets the focus, i.e.
gainFocus handlers are triggered, browser renders it with a blue border color, but iOS does not open the keyboard and there is no caret inside the textfield.
In this state even an additional tap into the text field doesn't open the keyboard!
The only way to open the keyboard is a tap at some other widget - to remove the focus - and then tapping it, so it gains the focus via actual user interaction.
Is there any way to set focus and open the keyboard programmatically in some event handler or a serverPushSession?
Best regards
Jürgen
|
|
|
Re: iOS, Safari: open keyboard with setFocus() for Text [message #1785923 is a reply to message #1785876] |
Mon, 23 April 2018 03:37  |
Eclipse User |
|
|
|
Hi Jürgen,
this is a known limitation of the iOS operating system. Apple has implemented a restriction to forbid keyboard from opening programmatically. This is done for security reasons, to avoid malicious sites from flooding you with open/close keyboard sequences. In order to open a keyboard on iOS, a user iteration is required - touch on the page/text field. There is no way to avoid this.
Regards,
Ivan
|
|
|
Powered by
FUDForum. Page generated in 0.04589 seconds