MCPcopy Create free account
hub / github.com/dorkbox/SystemTray / setShortcut

Method setShortcut

src/dorkbox/systemTray/Checkbox.java:200–207  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 4

TestTrayMethod · 0.95
TestTraySwtMethod · 0.95
doJavaFxStuffMethod · 0.95
CheckboxMethod · 0.95

Calls 1

setShortcutMethod · 0.65

Tested by 3

TestTrayMethod · 0.76
TestTraySwtMethod · 0.76
doJavaFxStuffMethod · 0.76