Hi,
My intention is to extend the keyboard plugin to be able to detect language specific characters.
Looking at this website:
http://javascript.info/tutorial/keyboard-events
I can see that there is a parameter: which:
This is used to properly detect a symbol:
// event.type must be keypress
function getChar(event) {
if (event.which == null) {
return String.fromCharCode(event.keyCode) // IE
} else if (event.which!=0 && event.charCode!=0) {
return String.fromCharCode(event.which) // the rest
} else {
return null // special key
}
}
[/code:d6r088gg]
EDIT:
I can see that there is :
instanceProto.onKeyDown
but no on key press
Can anyone help?