(keystroke arg)
Convert an argument to a KeyStroke. When the argument is a string, follows the keystroke descriptor syntax for KeyStroke/getKeyStroke (see link below).
For example,
(keystroke "ctrl S")
Note that there is one additional modifier supported, "menu" which will replace the modifier with the appropriate platform-specific modifier key for menus. For example, on Windows it will be "ctrl", while on OSX, it will be the "command" key. Yay!
arg can also be an i18n resource keyword.
Convert an argument to a KeyStroke. When the argument is a string, follows the keystroke descriptor syntax for KeyStroke/getKeyStroke (see link below). For example, (keystroke "ctrl S") Note that there is one additional modifier supported, "menu" which will replace the modifier with the appropriate platform-specific modifier key for menus. For example, on Windows it will be "ctrl", while on OSX, it will be the "command" key. Yay! arg can also be an i18n resource keyword. See http://download.oracle.com/javase/6/docs/api/javax/swing/KeyStroke.html#getKeyStroke(java.lang.String)
cljdoc builds & hosts documentation for Clojure/Script libraries
Ctrl+k | Jump to recent docs |
← | Move to previous article |
→ | Move to next article |
Ctrl+/ | Jump to the search field |