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++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

xcode - Swift Playground - Files are not readable -

jboss7.x - JBoss AS 7.3 vs 7.4 and differences -