Search code examples
javascriptformskeyboardtablet

Close android keyboard on the last field of a form


Is there a way to close the android keyboard when I'm on the last input of a form, already filled it, and click on the keyboard 'enter' button? It's a web app built with angularjs. Thanks


Solution

  • After the 'enter' button you could focus on an element (an <a> for example) and this should hide the soft keyboard. Details to catch the enter button here: angularjs move focus to next control on enter