Solved

java.awt.event.KeyEvent question...

Posted on 1998-03-16
1
269 Views
Last Modified: 2011-10-03
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?

0
Comment
Question by:cupOjava
1 Comment
 
LVL 4

Accepted Solution

by:
russgold earned 50 total points
ID: 1233601
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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
The viewer will learn how to implement Singleton Design Pattern in Java.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now