Sets the key map.
(static) setKeyMap(keyMap) → {caph.focus.focusControllerProvider}
Parameters:
Name | Type | Description |
---|---|---|
keyMap |
Object | An object to set key map. The property name should be upper case string such as 'LEFT', 'RIGHT', 'UP', 'DOWN' and 'ENTER'. |
Returns:
Example
angular.module('myApp', ['caph.focus']).config(['focusControllerProvider', function(focusControllerProvider) {
focusControllerProvider.setKeyMap({
LEFT: 1,
RIGHT: 2,
UP: 3,
DOWN: 4
});
}]);