To convert from AWT to AFC, instances of java.awt.event.KeyEvent should be transformed into instances of com.ms.ui.event.UIKeyEvent.
KeyEvent extends AWTEvent: be sure to see its changes.
This is the set of changes you need to make to port all KeyEvent methods to UIKeyEvent methods. Any method not listed here or below does not need to be changed.
AWT Code | AFC Code |
KEY_FIRST | KEY_EVENT_BASE |
Some methods in java.awt.event.KeyEvent are not directly supported in com.ms.ui.event.UIKeyEvent. Those methods are listed here.
KEY_LAST
getKeyModifiersText(int)
getKeyText(int)
setKeyChar(char)
setKeyCode(int)
setModifiers(int)