In JavaScript, on a keydown
or keypress
event, is there a way to determine the character that would have got typed if the shift
key was pressed down as well (irrespective of whether the shift
key is actually held down at the time)
E.g: if the keydown corresponds to '1', I need to get '!'
This would depend on the keyboard type as well. So, is there a way to factor that in too?