function checkAndMoveFocus(oControl, bEnabled) {
		var oDomRef = oControl.getDomRef();

		if (!bEnabled && oDomRef && oDomRef.contains(document.activeElement)) {
			var oFocusableAncestor = oControl.$().parent().closest(":focusable")[0];

			if (oFocusableAncestor) {
				oFocusableAncestor.focus({
					preventScroll: true
				});
			}
		}
	}
/**
	 * Moves the focus to the nearest ancestor that is focusable when the control that is going to be disabled
	 * (bEnabled === false) currently has the focus. This is done to prevent the focus from being set to the body
	 * tag
	 *
	 * @param {sap.ui.core.Control} oControl the control that is going to be enabled/disalbed
	 * @param {boolean} bEnabled whether the control is going to be enabled
	 * @private
	 */
Moves the focus to the nearest ancestor that is focusable when the control that is going to be disabled
(bEnabled === false) currently has the focus. This is done to prevent the focus from being set to the body
tag

@param {sap.ui.core.Control} oControl the control that is going to be enabled/disalbed
@param {boolean} bEnabled whether the control is going to be enabled
@private
Moves the focus to the nearest ancestor that is focusable when the control that is going to be disabled ( bEnabled === false ) currently has the focus . This is done to prevent the focus from being set to the body tag @param { sap . ui . core . Control } oControl the control that is going to be enabled / disalbed @param { boolean } bEnabled whether the control is going to be enabled @private
function checkAndMoveFocus(oControl, bEnabled) {
		var oDomRef = oControl.getDomRef();
		if (!bEnabled && oDomRef && oDomRef.contains(document.activeElement)) {
			var oFocusableAncestor = oControl.$().parent().closest(":focusable")[0];
			if (oFocusableAncestor) {
				oFocusableAncestor.focus({
					preventScroll: true
				});
			}
		}
	}
function checkAndMoveFocus ( oControl , bEnabled ) { var oDomRef = oControl . getDomRef ( ) ; if ( ! bEnabled && oDomRef && oDomRef . contains ( document . activeElement ) ) { var oFocusableAncestor = oControl . $ ( ) . parent ( ) . closest ( ":focusable" ) [ 0 ] ; if ( oFocusableAncestor ) { oFocusableAncestor . focus ( { preventScroll : true } ) ; } } }
Moves the focus to the nearest ancestor that is focusable when the control that is going to be disabled
 (bEnabled === false) currently has the focus.
Moves the focus to the nearest ancestor that is focusable when the control that is going to be disabled ( bEnabled === false ) currently has the focus .