Method Summary |
|
public void | setAlt(boolean alt) True to handle key only when alt is pressed (defaults to false). |
public void | setCtrl(boolean ctrl) True to handle key only when ctrl is pressed (defaults to false). |
public void | setKey(int key) The keycode to handle. |
public void | setKey(String keys) A list of keys to handle. |
public void | setKey(int[] keyCodes) An array of keycodes to handle. |
native public void | setKeyListener(KeyListener listener) The listener to call when KeyMap finds the expected key combination. |
public void | setShift(boolean shift) |