I have a form in my app, and I would like that after filling, if the person pressed Ir
or Done
, the keyboard disappeared.
Has anyone ever gone through this? Or do you know how to solve it?
I have a form in my app, and I would like that after filling, if the person pressed Ir
or Done
, the keyboard disappeared.
Has anyone ever gone through this? Or do you know how to solve it?
The best way to interact with the keyboard is by using the ionic-plugin-keyboard plugin.
One of your methods is cordova.plugins.Keyboard.close () that allows you to close the keyboard.
I believe that with the idea of @EduardoCalixto work, but need to test, of course. But the logic is this:
ng-keydown="expression"
, ng-keypress="expression"
, ng-keyup="expression"
I believe the keypress fits better, with expression
being the declared function in its current $ scope to the element in question. Remembering that you need to have the link plugin installed for the above method to work. Good luck!