JDK-4087296 : ANSI Keyboard duplicate keycodes
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.1.3
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1997-10-20
  • Updated: 2001-12-11
Related Reports
Relates :  
Description

Name: rm29839			Date: 10/20/97


When using an ANSI (108 key) keyboard:
Both <Remove> and <Do> return keycode = 127
Both Keypad minus and Keypad comma return keycode = 107
Both Keypad <Enter> and <Return> return keycode = 10
Left <Compose> returns keycode = 17 and keycode = 18
Right <Compose> returns keycode = 17

How can I differentiate between these keys?
======================================================================

Comments
WORK AROUND Name: rm29839 Date: 10/20/97 ======================================================================
17-09-2004

EVALUATION Fixing this would require public API changes. There have been a number of similar requests (e.g. 4302270). A lot of the keys mentioned in the description are keys I have never seen or heard of. Of course, I don't think I've seen a 108-key keyboard, either. A Type-4 keyboard seems to have 107 keys. Type-5 and Type-6 have 119, and my Windows keyboard has 104. Hmm. A web search reveals that a company called Boundless Technology makes a 108-key ANSI keyboard. I couldn't find a picture, though. Both <Remove> and <Do> return keycode = 127 public static final int VK_DELETE = 0x7F; /* ASCII DEL */ Both Keypad minus and Keypad comma return keycode = 107 public static final int VK_ADD = 0x6B; Both Keypad <Enter> and <Return> return keycode = 10 public static final int VK_ENTER = '\n'; Left <Compose> returns keycode = 17 and keycode = 18 Right <Compose> returns keycode = 17 public static final int VK_CONTROL = 0x11; public static final int VK_ALT = 0x12; I can't imagine how the Left <Compose> key (or any key) could possibly return two different keycodes (unless it were somehow affected by NumLock). The problem of discriminating between the numpad enter and the distinct Return key is resolved by 4424517. eric.hawkes@eng 2001-04-13
13-04-2001