Solved

java.awt.event.KeyEvent question...

Posted on 1998-03-16
1
268 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
strCopies  challenge 17 73
json format text only 4 65
JAVA part two 5 41
Java and GPO 11 47
By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn how to implement Singleton Design Pattern in Java.

758 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

18 Experts available now in Live!

Get 1:1 Help Now