Comment on For Science: WhichShiftButton.comparentComments−pavel_lishin15yDoes javascript differentiate between left and right shift?edit: Looks like it doesn't care. Interesting fact, if you bind an "keydown" event to something, it will fire when you hit caps lock to turn it on, but not to turn it off.−nbertramOP15yHaven't found a way to do it with JS - I don't think it's possible. Apparently you can do it with Java http://download.oracle.com/javase/1.4.2/docs/api/java/awt/ev...
Comments
Does javascript differentiate between left and right shift?
edit: Looks like it doesn't care. Interesting fact, if you bind an "keydown" event to something, it will fire when you hit caps lock to turn it on, but not to turn it off.
Haven't found a way to do it with JS - I don't think it's possible. Apparently you can do it with Java http://download.oracle.com/javase/1.4.2/docs/api/java/awt/ev...