United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4386962 : can't enter multi-key characters if they use alt-key only (Mac issue)

Details
Type:
Bug
Submit Date:
2000-11-08
Status:
Closed
Updated Date:
2001-11-28
Project Name:
JDK
Resolved Date:
2001-11-28
Component:
client-libs
OS:
generic
Sub-Component:
javax.swing
CPU:
generic
Priority:
P4
Resolution:
Duplicate
Affected Versions:
1.1.8,1.3.0
Fixed Versions:

Related Reports
Duplicate:

Sub Tasks

Description

Name: yyT116575			Date: 11/07/2000


Java(TM) 2 Runtime Environment, Standard Edition (build 1.3)

As in bug 4244859, you can't enter special characters in JTextComponents.  The
bug fix provided there doesn't work for Macs, because Macs use *just* the Option
(alt) key, not Ctrl+Alt.

Also the Mac uses Meta for menu shortcuts, not Ctrl.

I think the best cross-platform solution is to block meta and (ctrl & not alt) -
this lets alt (Mac) and ctrl-alt (PC) chars through.
(Review ID: 111642) 
======================================================================

                                    

Comments
EVALUATION

It is not clear why the Apple implementation is passing the modifiers through on the KeyTyped event. Have emailed submitter.
scott.violet@eng 2000-11-29

This is another manifestation of 4435010, we need API to determine when a key sequence is needed to produce a valid char.
scott.violet@eng 2001-04-07

I have emailed Lee Ann for details as to why this is a Swing issue, instead of an Apple issue.
scott.violet@eng 2001-06-11

As Swing can not do anything about this until 4435010 is solved, I am closing this out as a duplicate. Will fix once API has been added so that we can distinguish valid and invalid key sequences.
###@###.### 2001-11-28
                                     
2001-11-28



Hardware and Software, Engineered to Work Together