Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

"Go" button triggers ng-submit for input types "text" and "search" but not "tel" or "number"

$
0
0

Hi everyone,

I've finally put a ng-keyDown directive on my input element to detect when the user presses the "Go" button of its keyboard (keyCode 9). I also, by the way, handled the keyCode 13 ("Enter"). Then I call a method of my controller to trigger the form ng-submit code.

It's working in the emulator, it should be working on my Nexus 5 (to be confirmed).

'Hope it will help :wink:.


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>