Skip to Content
0
Former Member
Jul 25, 2014 at 03:21 PM

The code to set focus and cursor position fails in a mobile browser

161 Views

In two previous discussions (http://scn.sap.com/message/15176399 and http://scn.sap.com/message/15205348) I received help on how to set the focus on an OpenUI5 mobile input field and then how to position the cursor at the end of any text that might be in that field.

That all works well in desktop browsers (Chrome, Firefox and IE10).

However that same code seems to fail when I test it on browsers on mobile devices. At first I thought this was working in Chrome on an iPad but now it does not (could our taking new OpenUI5 code recently affected that?). I do not think I have ever see this work in Chrome on a, Android tablet.

Has anyone had success setting the focus and cursor position on a mobile input field running in a mobile environment?