dist/jquery.qtip.js
function stealFocus(event) {
		if(!elem.is(':visible')) { return; }

		var target = $(event.target),
			tooltip = current.tooltip,
			container = target.closest(SELECTOR),
			targetOnTop;

		// Determine if input container target is above this
		targetOnTop = container.length < 1 ? FALSE :
			parseInt(container[0].style.zIndex, 10) > parseInt(tooltip[0].style.zIndex, 10);

		// If we're showing a modal, but focus has landed on an input below
		// this modal, divert focus to the first visible input in this modal
		// or if we can't find one... the tooltip itself
		if(!targetOnTop && target.closest(SELECTOR)[0] !== tooltip[0]) {
			focusInputs(target);
		}
	}
function stealFocus(event) {
		if(!elem.is(':visible')) { return; }

		var target = $(event.target),
			tooltip = current.tooltip,
			container = target.closest(SELECTOR),
			targetOnTop;

		// Determine if input container target is above this
		targetOnTop = container.length < 1 ? FALSE :
			parseInt(container[0].style.zIndex, 10) > parseInt(tooltip[0].style.zIndex, 10);

		// If we're showing a modal, but focus has landed on an input below
		// this modal, divert focus to the first visible input in this modal
		// or if we can't find one... the tooltip itself
		if(!targetOnTop && target.closest(SELECTOR)[0] !== tooltip[0]) {
			focusInputs(target);
		}
	}
function stealFocus ( event ) { if ( ! elem . is ( ':visible' ) ) { return ; } var target = $ ( event . target ) , tooltip = current . tooltip , container = target . closest ( SELECTOR ) , targetOnTop ; // Determine if input container target is above this targetOnTop = container . length < 1 ? FALSE : parseInt ( container [ 0 ] . style . zIndex , 10 ) > parseInt ( tooltip [ 0 ] . style . zIndex , 10 ) ; // If we're showing a modal, but focus has landed on an input below // this modal, divert focus to the first visible input in this modal // or if we can't find one... the tooltip itself if ( ! targetOnTop && target . closest ( SELECTOR ) [ 0 ] !== tooltip [ 0 ] ) { focusInputs ( target ) ; } }
Steal focus from elements outside tooltip
Steal focus from elements outside tooltip