javascript - How to handle differences in iOS and Android Keyboard -


for html/js in mobile browsers, i'm having issue blur events trigger differently in ios , android. in ios, user can click on "done" on native keyboard, hides keyboard , causes focused element blur.

the same, however, not happen when user clicks icon in android hide native keyboard; elements focused keep focus.

is there way listen keyboard hiding , trigger blur on focused element? or there way force android keyboard display "done" button? or there better solution?

maybe solution listen keydown event on input, , check if keypress "enter".

to that, please refer :

enter key press event in javascript


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -