Sets a menu entry shortcut key (Mnemonic) so that menu entry can be "selected" via the keyboard while the menu is displayed. Mnemonics are case-insensitive, and if the character defined by the mnemonic is found within the text, the first occurrence of it will be underlined. @param key this is t
(final char key)
| 198 | * @param key this is the key to set as the mnemonic |
| 199 | */ |
| 200 | public |
| 201 | void setShortcut(final char key) { |
| 202 | this.mnemonicKey = key; |
| 203 | |
| 204 | if (peer != null) { |
| 205 | ((CheckboxPeer) peer).setShortcut(this); |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | /** |
| 210 | * Sets a menu entry shortcut key (Mnemonic) so that menu entry can be "selected" via the keyboard while the menu is displayed. |