Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

amitsolanki24_'s avatar

KeyUp event is not working on mobile app

Why keyup event is not working on mobile app But it's perfectly working on website.

I'm using this

var asci = e.which || e.keyCode;
0 likes
10 replies
amitsolanki24_'s avatar

@martinbean

My search API is not calling when I press any character

And whenever I type anything in searchbar from mobile keyboard I got 229 asci value From this code

asci = e.which || e.keyCode;
jlrdw's avatar

Some time ago I saw a similar post and I believe keydown worked for them.

1 like
amitsolanki24_'s avatar

@jlrdw Thanks for response, I'll try

I got 229 asci value from above code when I type anything.

gych's avatar

Instead of event.keycode try to use: event.key, event.which or event.target.value.splice(-1)

Add console log to check which value they contain.

1 like

Please or to participate in this conversation.