isFocusWhenDisabled

jQuery.caph.focus.controllerProvider. isFocusWhenDisabled

Gets the current status about whether set the focus when the target is disabled or not.

(static) isFocusWhenDisabled() → {boolean}

Returns:

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

Type
boolean
Example
$(document).ready(function() {
 	$.caph.focus.init(function(nearestFocusableFinderProvider, controllerProvider) {
 		console.log(controllerProvider.isFocusWhenDisabled());
 	});
 });