Creating Keyboard shortcuts in ADF

For default ADF Faces provides a accelerator for page level components. But this is not customized.

The menu components like commandMenuItem have the accelerator attribute (Ctrl+YourKey).

Another possibility is the accessKey attribute. This attribute moves the focus to the components and in the case of button or links executes the action.

The problem is that the interpretation of accessKey depends of browser.

For example:

  • Firefox interprets the acceskey like Alt+Shift+yourAcKey.
  • Explorer Alt+yourAcKey.

Firefox always sets focus and executes the action in all the components but IE in some components like in the commandToolbarButton only sets a focus.

Another way is create your own shortcuts through JavaScript functions.

Responder

Introduce tus datos o haz clic en un icono para iniciar sesión:

Logo de WordPress.com

Estás comentando usando tu cuenta de WordPress.com. Cerrar sesión / Cambiar )

Imagen de Twitter

Estás comentando usando tu cuenta de Twitter. Cerrar sesión / Cambiar )

Foto de Facebook

Estás comentando usando tu cuenta de Facebook. Cerrar sesión / Cambiar )

Google+ photo

Estás comentando usando tu cuenta de Google+. Cerrar sesión / Cambiar )

Conectando a %s