JDK-7124411 : [macosx] There's no KEY_TYPED for VK_ESCAPE
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: os_x
  • CPU: generic
  • Submitted: 2011-12-23
  • Updated: 2015-02-27
  • Resolved: 2012-06-20
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7u6 b13Fixed
Description
http://java.net/jira/browse/MACOSX_PORT-159 submitted 2011/07/13 by Yuri Nesterenko
Add a key listener to a component and look at the events; for instance, use an attached simple example. There's no KEY_TYPED for VK_ESCAPE. There is, on some other platforms.

Comments
EVALUATION Author: Artem Ananiev Date: 25/Jul/11 02:54 PM Is there any statement in JavaDoc about KEY_TYPED events for keys like Escape? Author: Yuri Nesterenko Date: 26/Jul/11 06:46 AM &quot;They are generated when a Unicode character is entered.&quot; &#8211; that's all we have, I believe. Now, on other platforms Escape does generate a Unicode character but not on Mac <span class=&quot;error&quot;>&#91;Mac Java&#93;</span>. I believe it should, if possible: I don't think there is code depending on <em>not</em> generating Unicode for Escape. Author: Yuri Nesterenko Date: 28/Jul/11 07:19 AM Build: b200 AWT_Events/Automated/KeyEventLocation closed/java/awt/event/KeyEvent/KeyTyped/EscapeKeyTyped
23-12-2011