Creates a KeyCode for the "menu shortcut" + 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 not wor
(int keyCode)
| 204 | * but this does not work for all characters, so is not recommended). |
| 205 | */ |
| 206 | public static KeyStroke ctrl(int keyCode) { |
| 207 | return KeyStroke.getKeyStroke(keyCode, CTRL); |
| 208 | } |
| 209 | |
| 210 | /** |
| 211 | * Creates a KeyCode for the "menu shortcut" + shift + the key passed in. By |