-
Bug
-
Resolution: Fixed
-
P3
-
1.1.5, 1.1.6, 1.2.0
-
b02
-
x86
-
windows_95, windows_nt
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2022821 | 1.2.0 | Robi Khan | P3 | Resolved | Fixed | 1.2fcs |
JDK-2022820 | 1.1.8 | Robi Khan | P3 | Resolved | Fixed | 1.1.8 |
Name: clC74495 Date: 09/15/98
This is an Oracle Bug : 717130
In Windows, typing ALT+NUMPAD (i.e. ALT+6+5) will get an 'A'
character. But it doesn't work on AWT TextField.
Here is a simple Java testcase:
import java.applet.*;
import java.awt.Event;
import java.awt.*;
import java.awt.Component;
import java.awt.event.KeyListener;
import java.awt.event.KeyEvent;
public class Nagen extends Applet implements KeyListener {
TextField tx = new TextField("", 10);
public void init() {
this.add(tx);
tx.addKeyListener(this);
tx.requestFocus();
}
public void keyPressed(KeyEvent event) {
System.out.println("Its a KeyPressed event with Value " + event.getKeyChar());
System.out.println("The keycode is " + event.getKeyCode());
}
public void keyTyped(KeyEvent event) {
System.out.println("Its a KeyTyped event with Value " + event.getKeyChar());
System.out.println("The keycode is " + event.getKeyCode());
}
public void keyReleased(KeyEvent event) {
System.out.println("Its a KeyReleased event with Value " + event.getKeyChar());
System.out.println("The keycode is " + event.getKeyCode());
}
}
(Review ID: 38823)
======================================================================
- backported by
-
JDK-2022820 ALT+NUMPAD doesn't work on awt.TextField.
-
- Resolved
-
-
JDK-2022821 ALT+NUMPAD doesn't work on awt.TextField.
-
- Resolved
-
- duplicates
-
JDK-4122715 Can't use Alt Numpad to enter European Char's into editable components
-
- Closed
-
-
JDK-4138920 ALT+numpad keys don't enter proper characters
-
- Closed
-