I need to perform some action only if the left ALT key was pressed with the letter s.
I can find whether some Alt+s pressed using the keydown
event, when oEvent.altKey === true
and String.fromCharCode(oEvent.keyCode) === 'S'
.
I can also find whether the left or right ALT was pressed by:
oEvent.originalEvent.location === KeyboardEvent.DOM_KEY_LOCATION_LEFT
or
oEvent.originalEvent.location === KeyboardEvent.DOM_KEY_LOCATION_RIGHT
But what I could not find is the way to combine the two.