What's the key code for left shift? When I press left shift do something..
Thanks
With JavaScript you can only detect Shift. You can't differentiate left and right shift. Using jQuery:
$("body").keypress(function(event) {
if (event.shiftKey) {
//do something here
}
});
As you can see from this page, the browser does not differentiate from left and right shift. I don't think it's possible.
The only way to know is to ask the user.
So what that means is it not possible with code alone, and not desirable to ask the user.
There is probably a better solution to the problem you think you have.