setFocusWhenDisabled

jQuery.caph.focus.controllerProvider. setFocusWhenDisabled

Determines whether set focus to the focusable element, even if it is disabled. Remember that the disabled element always do not receive the 'selected' event.

(static) setFocusWhenDisabled(bool) → {jQuery.caph.focus.controllerProvider}

Parameters:
Name Type Description
bool boolean

If true, will set focus when the focusable element is disabled.

Returns:
Type
jQuery.caph.focus.controllerProvider
Example
$(document).ready(function() {
 	$.caph.focus.init(function(nearestFocusableFinderProvider, controllerProvider) {
 		controllerProvider.setFocusWhenDisabled(true);
 	});
 });