Sets the key map.
(static) setKeyMap(keyMap) → {jQuery.caph.focus.controllerProvider}
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
$(document).ready(function() {
$.caph.focus.init(function(nearestFocusableFinderProvider, controllerProvider) {
controllerProvider.setKeyMap({
LEFT: 1,
RIGHT: 2,
UP: 3,
DOWN: 4
});
});
});