Confirm if the tour loses focus and hides the tips.
184211
def lost_focus(self):
        """"""
        if (self.is_running and not self.any_has_focus() and
            not self.setting_data and not self.hidden):
            self.hide_tips()
98802
private void checkIfEmpty(){
        if(emptyView != null){
            emptyView.setVisibility(getItemCount() > 0 ? View.GONE : View.VISIBLE);
        }
    }
148743
public void myFocusLost()
    {
        m_bInFocus = false;
        String strText = super.getText();
        if ((strText == null) || (strText.length() == 0))
        {   // Don't notify of change
            if (m_actionListener != null)
                this.removeActionListener(m_actionListener);
            this.changeFont(true);
            super.setText(m_strDescription);
            if (m_actionListener != null)
                this.addActionListener(m_actionListener);
        }
    }
1217371
def leaveEvent(self, event):
        """"""
        super(ToolTipWidget, self).leaveEvent(event)
        self.hide()
106244
function(evt) {
        if (OpenLayers.Util.mouseLeft(evt, this.map.viewPortDiv)) {
            this.clearTimer();
            this.callback('move', [evt]);
        }
        return true;
    }
442440
public function isFocused()
	{
		if( $this->focus !== FALSE && $this->focusKey )
			return 'primary';
		if( count( $this->foreignFocuses ) )
			return 'foreign';
		return FALSE;
	}
562032
function inSight(b) {
        if (position.distanceSq(b.position) > maxDistanceSq) {
            return false;
        }
        const heading = velocity.clone().normalize();
        const difference = b.position.clone().subtract(position);
        const dotProd = difference.dotProduct(heading);

        heading.dispose();
        difference.dispose();

        return dotProd >= 0;
    }
1059702
public function isFocused()
    {
        if ($this->focused === true) {
            return $this->focused;
        }

        foreach ($this->tests as $test) {
            if ($test->isFocused()) {
                return true;
            }
        }

        return false;
    }
403302
def blur(self):
        
        self._has_focus = False
        try:
            self._columns[self._live_col][self._live_widget].blur()
        except IndexError:
            # don't worry if there are no active widgets in the Layout
            pass
992417
function() {
      var t = this;

      // Set the current tour pages
      t.pages = t.tour.get('pages');

      // Tour fields
      t.$('.nm-tsv-id').val(t.tour.get('id'));
      t.$('.nm-tsv-title').val(t.tour.get('title'));
      t.$('.nm-tsv-description').val(t.tour.get('description'));
      t.$('.nm-tsv-auto-next-sec').val(t.tour.get('autoNextSec'));
      var pageList = t.$('.nm-tsv-page-list').html('');

      // Tour pages
      var table = $('<table></table>').appendTo(pageList);

      for (var i = 0; i < t.pages.length; i++) {
        var page = t.pages[i];
        $('<tr><td>' + page['title'] + '</td><td class="nm-tsv-up" title="move up"><i class="icon-caret-up"></i></td><td class="nm-tsv-down" title="move down"><i class="icon-caret-down"></i></td><td class="nm-tsv-remove" title="remove page"><i class="icon-minus"></i></td></tr>').appendTo(table);
      }

      // Connect all tooltips
      UI.tooltip(t.$('*[title]'),{placement:'bottom'});

    }
1271248
def __check_focus(self, event):
        """"""
        #print('Event:', event.type, event.x, event.y)
        changed = False
        if not self._curfocus:
            changed = True
        elif self._curfocus != self.focus():
            self.__clear_inplace_widgets()
            changed = True
        newfocus = self.focus()
        if changed:
            if newfocus:
                #print('Focus changed to:', newfocus)
                self._curfocus= newfocus
                self.__focus(newfocus)
            self.__updateWnds()
831218
function _hideHints() {
    var hints = this._targetElement.querySelectorAll('.introjs-hint');

    if (hints && hints.length > 0) {
        for (var i = 0; i < hints.length; i++) {
            _hideHint.call(this, hints[i].getAttribute('data-step'));
        }
    }
}
277673
def has_hints(self):
        
        for acc in ["low", "normal", "high"]:
            try:
                if self.hint_for_accuracy(acc) is None:
                    return False
            except KeyError:
                return False
        return True
370150
function(e) {
      var t = this;
      UI.hideToolTips();
      UI.pauseTour();

      // Tell the settings it's about to be shown
      t.tourSettingsView.show();

      // Don't propagate the click to the heading
      e.stopPropagation();
    }
35466
def cancelEdit( self ):
        
        
        if ( self._partsWidget.isVisible() ):
            return False
            
        self._completerTree.hide()
        self.completer().popup().hide()
        
        self.setText(self._originalText)
        return True
1210154
def focusOutEvent( self, event ):
        
        super(XNavigationEdit, self).focusOutEvent(event)
        
        self.cancelEdit()
729772
function () {
      if (!selection.isSelected()) {
        return false;
      }
      if (selection.isMultiple()) {
        priv.selectionBorder.appear([priv.selStart, selection.end()]);
      }
      else {
        priv.selectionBorder.disappear();
      }
    }