mxui.wm.focus.Box
Manages focus and keyboard mappings inside a containing DOMNode.
Methods
add(node)
Add a new focusable node to the focus chain.
Parameters
Name | Type | Description |
---|---|---|
node | DOMNode | The focusable node to add |
pressed(mapping, scope)
Configures the mapping of keys to keyhandlers for this Box.
Parameters
Name | Type | Description |
---|---|---|
mapping | Object | A mapping of keys (see dojo.keys ) to handlers. A handler can be either a Function, a String with the name of a function, Box.FOCUS_NEXT or Box.FOCUS_PREV . These last two cause the focus to change to either the next or previous focus node. The handler is called with a single argument event , which is the DOMEvent that triggered it. |
scope | Object | The scope in which to call the handler functions. |
destroy()
Release storage for this Box.