Skip to Content

Disable soft keyboard or autofocus in SAPUI5 Mobile

Hi guys,

I have a SAPUI5 app with bar code scanner integrated.

When you open a view, the focus is autoset to the sapui5 control "SearchField" and hence the soft keyboard is shown.

I've tried a lot of ways but no one worked.

How can I avoid the "autofocus" or at least to prevent showing the mobile keyboard?
Any ideas?


Greets,
Jorge

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 22, 2018 at 08:56 AM

    Not a real solution but a workaround enough for this case.


    Create a previous dummy button which receive the auto-focus in the view (instead of the input). Of course this dummy button is hidden to the user's eye.

    Add comment
    10|10000 characters needed characters exceeded