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) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -