by joe26 » Wed May 02, 2018 11:34 pm
IOS does not maintain focus, unless you never leave the Entry Field.
I only needed one field; but to make it work, I needed two fields.
Both fields shared the same function with different local variables as dataproviders.
When input has been processed, reset the OTHER destination field for focus, and then switch focus there.
The next time, it will use the other field's focus and maintains the onscreen keyboard. I'm hoping this doesn't break in 8.2.3.
if (event.getElementName() == 'genericin'){
forms['main_view'].genericInput2 = '';
forms[main_view'].elements['genericin2'].requestFocus();
} else {
forms['main_view'].genericInput = '';
forms['main_view'].elements['genericin'].requestFocus();
}
Not so ugly, but there it is.
--Joe.