Keyboard in mobile HTML/JS app without Cordova


#1

Hi guys!
Have started using ionic for mobile version of my application and everything was ok till i have to control mobile keyboard. I want to have two things working:

  1. Show input, then set focus to it and show keyboard right after that
  2. Hide input on keyboard Done tap (on Submit/Go tap it is ok automatically when i use ng-submit, so i want the same for Done button)

Here is some code on codepen to illustrate my problem.
As i have mentioned in the title: ‘I’m not using Cordova at all’. I just want to have HTML/JS mobile version of my application.

Thanks for any help :smile: