JDK-4386962 : can't enter multi-key characters if they use alt-key only (Mac issue)
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.1.8,1.3.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2000-11-08
  • Updated: 2001-11-28
  • Resolved: 2001-11-28
Related Reports
Duplicate :  
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