javascript - fast way to get value of keyup / keydown event -


i'm using

string.fromcharcode(e.keycode) 

to value of keyup / keydown event. result lags when keeping key down (key sequence). there faster way value of keyup / keydown event ? note; need plain javascript way.thanks in advance

fromcharkeycode not idea values of characters, check value of numbers? see you're getting 1, b 2 etc. function checking if returned value correct makes more slower getting last character of input value.


Comments

Popular posts from this blog

c - CUDA code not processing if block properly -

Android Capture Image From Camera -

Define custom list-style-type in CSS -