How do I run some code when user clicks arrow (enter/go) button on smartphone built-inkeyboard

Hi, I am trying to figure out how to emulate a button click when the user presses the arrow button on the keyboard that pops up on a smartphone. What I am talking about is this:

d

So that the user doesn’t have to click an actual button, they can just hit this. How do I grab this event and apply some functionality to it? I am using Ionic Vue. Thank you for the help.

I never used Vue but in Angular you can add a keyup.enter listener. After googling that in combination with “vuejs” i found this: javascript - Handling Enter Key in Vue.js - Stack Overflow

Maybe give it a Try?

1 Like

Thank you, I will try that.