# rich

## Tag hotKey

- Description:

    The <rich:hotKey> component allows registering hot keys on the page or particular elements and defining client side processing functions for these keys.

    @author ilya_shaikovsky @author Lukas Fryc

- Component Information
  Info | Value
  --- | ---
  Component Type | `org.richfaces.HotKey`
  Display Name | None
  Handler Class | None
  Renderer Type | `org.richfaces.HotKeyRenderer`
  Description | The <rich:hotKey> component allows registering hot keys on the page or particular elements and defining client side processing functions for these keys. @author ilya_shaikovsky @author Lukas Fryc

- Attributes
  Name | Required | Type | Description
  --- | --- | --- | ---
  `binding` | `false` | `javax.el.ValueExpression` (must evaluate to `javax.faces.component.UIComponent`) | The value binding expression used to wire up this component to a component property of a JavaBean class
  `enabledInInput` | `false` | `javax.el.ValueExpression` (must evaluate to `boolean`) | The switch which enables handling events coming from input
  `id` | `false` | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | The component identifier for this component. This value must be unique within the closest parent component that is a naming container.
  `key` | `true` | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | The key sequence to be pressed, single keys separated by + (e.g. 'ctrl+a'), more key sequences separated by space. Special keys are accepted as follows: backspace, tab, return, shift, ctrl, alt, pause, capslock, esc, space, pageup, pagedown, end, home, left, up, right, down, insert, del, numlock, scroll, meta, f1, f2, ..., f12
  `onkeydown` | `false` | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | Event handler to be fired when registered key sequence is pressed down
  `onkeyup` | `false` | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | Event handler to be fired when registered key sequence is pressed up
  `preventDefault` | `false` | `javax.el.ValueExpression` (must evaluate to `boolean`) | The switch which prevents native browser actions (prevents default) to be taken and stops event propagation up to the tree
  `rendered` | `false` | `javax.el.ValueExpression` (must evaluate to `boolean`) | Flag indicating whether or not this component should be rendered (during Render Response Phase), or processed on any subsequent form submit. The default value for this property is true.
  `selector` | `false` | `javax.el.ValueExpression` (must evaluate to `java.lang.String`) | The jQuery selector (subset of CSS selectors defined by W3C) of the DOM root from which key events should be handled. When no value provided, events are handled for whole document. ID selectors starting with hash sign (#) will be expanded from componentId to clientId form. (e.g. #component is expanded to #form:component in case that component is nested in form)

Output generated by Vdldoc View Declaration Language Documentation Generator.