selectionRange = function (oFocusDomRef, bSkipTextSelection) {
		if (!oFocusDomRef) {
			return null;
		}

		var iSelectionStart = oFocusDomRef.selectionStart,
			iSelectionEnd = oFocusDomRef.selectionEnd,
			oRange = {start: iSelectionStart, end: iSelectionEnd};

		return oRange;
	}
Returns 0-based indexes of the first and last selected characters.

@param {HTMLElement} oFocusDomRef The inner input element.
@param {boolean} bSkipTextSelection True, if the selection should be skipped for legacy browsers.

@returns {object | null} The selection range.