I need to somehow change the character typed into a different utf8 character and was wondering how it can be achieved with jquery? Basically when some inputs are focused, I want to have English letters typed translated into other predefined character. Any ideas?
Share
You’ll probably need to use a keypress handler. You get the character code from the
whichfield of the event. You can then map this to the desired character. You could store the mappings in an object:Then, do something like: