Use:
// 'event' comes from handler params
var character = String.fromCharCode(event.which): // 'character' has the pressed char
Resource: http://stackoverflow.com/questions/2220196/how-to-decode-character-pressed-from-jquerys-keydowns-event-handler
// 'event' comes from handler params
var character = String.fromCharCode(event.which): // 'character' has the pressed char
Resource: http://stackoverflow.com/questions/2220196/how-to-decode-character-pressed-from-jquerys-keydowns-event-handler
No comments:
Post a Comment