Creates a KeyCode for the "menu shortcut" + shift + the key passed in. By default, the menu shortcut is the ctrl key (hence the method name), but platforms might use a different key (like the Apple key on OSX). keyCode should be a KeyEvent.VK_ constant (it can also be a char constant, but this does
(int keyCode)
| 216 | * but this does not work for all characters, so is not recommended). |
| 217 | */ |
| 218 | public static KeyStroke ctrlShift(int keyCode) { |
| 219 | return KeyStroke.getKeyStroke(keyCode, CTRL | InputEvent.SHIFT_MASK); |
| 220 | } |
| 221 | |
| 222 | /** |
| 223 | * Creates a KeyCode for the "menu shortcut" + alt + the key passed in. By |