Enable app to respond to key presses (keyup and keydown).
Keyboard Molecule | |
Preference Dialog | |
Properties | |
type | string, ( r ) |
pref.name | string, ( r ) |
pref. | string, ( r, w ) |
pref. | string, ( r, w ) |
pref.keys | string, ( r ) |
pref. | bool, ( r, w ) |
pref. | string, ( r, w ) |
pref. | string, ( r, w ) |
pref. | bool, ( r, w ) |
pref. | array, ( r, w ) |
pref. | string, ( r, w ) |
Functions | |
attach | |
detach | |
delete | |
clone | |
serialize | |
addKey | |
clearKeys |
addKey( k );
Add character keys for this keyboard molecule to respond to.
k | (string) an ASCII character, a two letter hex representation of a character(e.g. \xA4), a four letter hex value representing an unicode character (e.g. \u008E), or any of these reserved characters: |
\r | return. |
\n | newline. |
\e | escape. |
\b | backspace. |
\t | tab. |
\up | up arrow. |
\down | down arrow. |
\left | left arrow. |
\right | right arrow. |
N/A