[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

java.awt.event.KeyEvent question...

Posted on 1998-03-16
1
Medium Priority
?
289 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 200 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
In this post we will learn different types of Android Layout and some basics of an Android App.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
Suggested Courses
Course of the Month20 days, 10 hours left to enroll

868 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