Solved

java.awt.event.KeyEvent question...

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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

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 last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
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:
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

809 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