Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » iOS, Safari: open keyboard with setFocus() for Text(swt.widgets.Text should open the iOS on-screen keyboard on setFocus())
iOS, Safari: open keyboard with setFocus() for Text [message #1785876] Sat, 21 April 2018 18:52 Go to next message
Jürgen  Kilian is currently offline Jürgen KilianFriend
Messages: 4
Registered: July 2009
Junior Member
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 07:37 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2289
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
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
Previous Topic:Grid, Template and selected row image
Next Topic:RAP and E4: PartSashContainer only vertical?
Goto Forum:
  


Current Time: Sat Nov 17 11:56:04 GMT 2018

Powered by FUDForum. Page generated in 0.02090 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top