I want to use the enter keyboard button on my phone to search for items. the red link has the filter function on it that I also want to fire when you press the enter/search button on your mobile device. how to do this?
You can just use the (keyup.enter)
to detect a Enter button press.
<ion-input type="text" (keyup.enter)="onEnter()"></ion-input>
and in your .ts
file you can handle the event
onEnter(){
//do search
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With