java.awt.event.KeyEvent question...

Is there any way with java.awt.event.KeyEvent to distinguish between the Left Alt or Left Control being pressed and the Right Alt or Right Control being pressed?  If so, how can this be done?

cupOjavaAsked:
Who is Participating?
 
russgoldConnect With a Mentor Commented:
No - because KeyEvent simply has no encoding for 'left alt' or 'right control.'    You can veify this for yourself by generating KeyEvents which use one or the other. You will see that (aside from the time) there is no difference between the events.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.