A singleton, master object that detects keyboard keys and events Connect to it like:
dojo.connect(this.keys, "onEnter", ....);
Indicates whether the Alt or Option key is currently pressed
The amount, in pixels, a selected Stencil will move on an arrow key event
The amount, in pixels, a selected Stencil will move on an arrow key + SHIFT event
Indicates whether the Apple Command key is currently pressed
Indicates whether any 'meta' key is currently pressed: shift || ctrl || cmd || alt
Parameter | Type | Description |
---|---|---|
evt | undefined |
Internal. Mixes in key events.
Parameter | Type | Description |
---|---|---|
evt | undefined |
Relinquishes control of events to another portion of Drawing; namely the TextBlock.
Parameter | Type | Description |
---|---|---|
_isedit | undefined |
Enables or disables key events, to relinquish control to something outside of Drawing; input fields for example. You may need to call this directly if you are using textareas or contenteditables. NOTE: See scanForFields
Parameter | Type | Description |
---|---|---|
_enabled | undefined |
Register an object and callback to be notified of events. NOTE: Not really used in code, but should work. See manager.mouse for similar usage
Parameter | Type | Description |
---|---|---|
options | undefined |
Scans the document for inputs and calls this automatically. However you may need to call this if you create inputs after the fact.
Event fires when an Arrow key is released You will have to further check if evt.keyCode is 37,38,39, or 40
Parameter | Type | Description |
---|---|---|
evt | Event |
Event fires when Delete key is released
Parameter | Type | Description |
---|---|---|
evt | Event |
Event fires when Enter key is released
Parameter | Type | Description |
---|---|---|
evt | Event |
Event fires when ESC key is released
Parameter | Type | Description |
---|---|---|
evt | Event |
Event fires when any key is pressed
Parameter | Type | Description |
---|---|---|
evt | Event |
Event fires when any key is released
Parameter | Type | Description |
---|---|---|
evt | Event |