SUGGESTED FIX
echawkes@jano:/net/jano/export/disk26/awt/echawkes/jdk15-3/src/share/classes/java/awt/event( 101 )% sccs diffs -C KeyEvent.java
------- KeyEvent.java -------
*** /tmp/dR8ai8N Sun Apr 6 14:03:44 2003
--- KeyEvent.java Sun Apr 6 14:03:39 2003
***************
*** 956,967 ****
/**
* Returns the character associated with the key in this event.
! * For example, the key-typed event for shift + "a" returns the
! * value for "A".
*
* @return the Unicode character defined for this key event.
* If no valid Unicode character exists for this key event,
! * keyChar is <code>CHAR_UNDEFINED</code>.
*/
public char getKeyChar() {
return keyChar;
--- 956,972 ----
/**
* Returns the character associated with the key in this event.
! * For example, the <code>KEY_TYPED</code> event for shift + "a"
! * returns the value for "A".
! * <p>
! * <code>KEY_PRESSED</code> and <code>KEY_RELEASED</code> events
! * are not intended for reporting of character input. Therefore,
! * the values returned by this method are guaranteed to be
! * meaningful only for <code>KEY_TYPED</code> events.
*
* @return the Unicode character defined for this key event.
* If no valid Unicode character exists for this key event,
! * <code>CHAR_UNDEFINED</code> is returned.
*/
public char getKeyChar() {
return keyChar;
###@###.### 2003-04-06
|