cancel
Showing results for 
Search instead for 
Did you mean: 

Disable soft keyboard or autofocus in SAPUI5 Mobile

jorge_cabanas
Participant

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

Accepted Solutions (1)

Accepted Solutions (1)

jorge_cabanas
Participant
0 Kudos

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.

Answers (0)