CAPH.WUI.WIDGET.KEYCONTROL

KeyControl represents a navigating function for the moving of highlight, highlightHelper can automatically find the most nearest widget on the up, down, left and right directions, this widget using the singleton pattern, users do not need to use the 'new' operator.

Methods

bindListener

Description

Binds the listener for KeyControl. User can bind function to the event. The function will be called, when the event is fired.

Parameters

■type - String - Event type, such as 'focuschange', 'keydown', 'mouseover' and so on. ■handler - Function - Callback function for the user. The function will be called, when the event is fired. This function is used for customized demand. For example, user can replace the next widget witch find by keyControl automatically.