Class: Keystroke

CIQ.UI. Keystroke


new Keystroke( [cb])

UI Helper for capturing and handling keystrokes. cb to capture the key.

Developer is responsible for calling e.preventDefault() and/or e.stopPropagation();

Parameters:
Name Type Argument Description
cb function <optional>

Callback when key pressed

Members


<static> noKeyCapture :Boolean

Set this to true to bypass key capture. Shift, CTRL, CMD will still be toggled however.

Type:
  • Boolean

Methods


keypress(e)

Identifies a keypress event.

Parameters:
Name Type Description
e