United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 7124368 [macosx] UnsupportedOperationException is thown on getLockingKeyState()
7124368 : [macosx] UnsupportedOperationException is thown on getLockingKeyState()

Details
Type:
Bug
Submit Date:
2011-12-23
Status:
Closed
Updated Date:
2012-09-25
Project Name:
JDK
Resolved Date:
2012-03-19
Component:
client-libs
OS:
os_x
Sub-Component:
java.awt
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
7
Fixed Versions:
7u4

Related Reports

Sub Tasks

Description
http://java.net/jira/browse/MACOSX_PORT-369 submitted 2011/08/31 by Taras Ledkov
UnsupportedOperationException is thrown on getLockingKeyState() when keyCode is VK_CAPS_LOCK, VK_NUM_LOCK, VK_SCROLL_LOCK, VK_KANA_LOCK.
Test (JCK-runtime):
api/java_awt/Toolkit/indexTGF_General
Build: b204
Keywords: test-fail-macos

                                    

Comments
EVALUATION

Author: Leonid Romanov Date: 19/Sep/11 12:04 PM
Shouldn't be hard to fix, but will require some research first. To be more specific, the following questions will have to be answered:
<ul class=&quot;alternate&quot; type=&quot;square&quot;>
.What states for getLockingKeyState() does Apple JDK 1.6 support?
.Are there any differences between Apple keyboards and generic PC keyboards that we should care about? For instance, I have a PC keyboard plugged into my Mac and seems that the NumLock key on it doesn't work like NumLock should. And ScrollLock doesn't do anything at all.
.How do we check supported locking key states in Cocoa.Overall, looks like 2 days work.
 
Author: Yuri Nesterenko Date: 11/Oct/11 09:56 AM
Build: b211
closed/java/awt/Toolkit/LockingKeyTest/LockingKeyTest.java
 
Author: Mike Swingler Date: 31/Oct/11 04:18 PM
Java SE 6 on Mac OS X only supports the VK_CAPS_LOCK locking key state, however +<span class=&quot;error&quot;>&#91;NSEvent modifierFlags&#93;</span> should be able to give you more.
 
Author: Leonid Romanov Date: 31/Oct/11 04:49 PM
So, no VK_KANA_LOCK?
                                     
2011-12-23



Hardware and Software, Engineered to Work Together