/*
(non-Javadoc)

@see java.awt.event.FocusListener#focusLost(java.awt.event.FocusEvent)
358218
public void focusLost(FocusEvent focusEvent) {
		String text = ((JSpinner.DateEditor) getEditor()).getTextField()
				.getText();
		if (text.length() == 0) {
			setDate(null);
		}
	}
805014
function () {
        window.removeEventListener("focus", savePhotoOnFocus);
        // call only when the app is in focus again
        savePhoto(cameraPicture, {
            destinationType: destinationType,
            targetHeight: targetHeight,
            targetWidth: targetWidth,
            encodingType: encodingType,
            saveToPhotoAlbum: saveToPhotoAlbum
        }, successCallback, errorCallback);
    }
792155
@Override
    public void onFocusChange(View v, boolean hasFocus) {
        if (getOnFocusChangeListener() != null) {
            getOnFocusChangeListener().onFocusChange(v, hasFocus);
        }

        EditText et = (EditText) v;
        if (et.getText().toString().length() >= 1 && hasFocus && isDeleteOnClick()) {
            et.getText().clear();
        }

        if (hasFocus) {
            setImeVisibility(true);

            if (onCompleteListener != null && lastCompleted) {
                lastCompleted = false;
                if (isDeleteOnClick()) {
                    onCompleteListener.onComplete(false, null);
                }
            }
        }
    }
20628
@Override
    protected void onFocusChanged(boolean focused, int direction,
                                  Rect previouslyFocusedRect) {
        super.onFocusChanged(focused, direction, previouslyFocusedRect);
        showErrorIconHax(lastErrorIcon);
    }
152511
public WebLocator focus() {
        boolean focus = waitToRender();
        assertThat("Element was not rendered " + toString(), focus);
        focus = executor.focus(this);
        assertThat("Could not focus " + toString(), focus);
        LOGGER.info("focus on {}", toString());
        return this;
    }
712948
private void txtRowCountFocusLost(java.awt.event.FocusEvent evt) {// GEN-FIRST:event_txtRowCountFocusLost
		if (selectedSource != null && !txtQueryEditor.getText().isEmpty()) {
			executeQuery();
			txtClassUriTemplate.requestFocus();
		}
	}
1345369
protected void keyEvent(final KeyEvent event) {
		try {
			if (event.getID() == KeyEvent.KEY_PRESSED && event.getKeyCode() == KeyEvent.VK_ENTER
					&& isEditable()) {
				// voir aussi focusEvent
				setValue(getValue());
			}
		} catch (final Exception e) {
			beep();
		}
	}
1132456
private OnFocusChangeListener createFocusChangeListener() {
        return new OnFocusChangeListener() {

            @Override
            public final void onFocusChange(final View view, final boolean hasFocus) {
                if (!hasFocus && isValidatedOnFocusLost()) {
                    validate();
                }
            }

        };
    }
366518
function (event) {
                    this._lastKeyOrBlurEvent = this._currentKeyOrBlurEvent;
                    switch (event.type) {
                        case "keyup":
                            if (event.keyCode === Key.shift) {
                                this._currentKeyOrBlurEvent = null;
                            } else {
                                this._currentKeyOrBlurEvent = "keyboard";
                            }
                            break;
                        case "focusout":
                            //anchor element no longer in focus, clear up the stack
                            this._currentKeyOrBlurEvent = null;
                            break;
                        default:
                            break;

                    }
                }
965477
private void tfPackageNameFocusLost(java.awt.event.FocusEvent evt)//GEN-FIRST:event_tfPackageNameFocusLost
    {//GEN-HEADEREND:event_tfPackageNameFocusLost
        // Commit on lost focus
        aTable.setPackageName(tfPackageName.getText());
    }
1342138
@Override
  public void close()
      throws IOException {
    if (delegateReader != null) {
      logger.atWarning().log(
          "Got non-null delegateReader during close(); possible premature close() call.");
      delegateReader.close();
      delegateReader = null;
    }
  }
724732
private void dateTimeFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_dateTimeFocusLost
        String dateTime = jTextField4.getText();
        setDateTime(dateTime);
    }
840729
def focusOutEvent(self, event):
        """"""
        self.focus_changed.emit()
        return super(PageControlWidget, self).focusOutEvent(event)
190593
function focusBinding (event) {
        this._hasFocus = true;
        var cb;
        if (this._hasPlaceholder) {
            cb = this._setCaretForPlaceholder;
        } else if (this._cfg.autoselect) {
            cb = this._autoselect;
        }

        if (cb) {
            ariaCoreTimer.addCallback({
                fn : cb,
                scope : this,
                delay : 4
            });
        }

    }
210223
public void windowLostFocus (WindowEvent e)
    {
        // un-press any keys that were left down
        if (!_downKeys.isEmpty()) {
            long now = System.currentTimeMillis();
            for (KeyEvent down : _downKeys.values()) {
                KeyEvent up = new KeyEvent(
                    down.getComponent(), KeyEvent.KEY_RELEASED, now,
                    down.getModifiers(), down.getKeyCode(), down.getKeyChar(),
                    down.getKeyLocation());
                for (int ii = 0, nn = _listeners.size(); ii < nn; ii++) {
                    _listeners.get(ii).keyReleased(up);
                }
            }
            _downKeys.clear();
        }
    }
699180
function() {
        this.logger.log("focus");
        this.valueChangeSource = Slider.SOURCE_UI_EVENT;

        // Focus the background element if possible
        var el = this.getEl();

        if (el.focus) {
            try {
                el.focus();
            } catch(e) {
                // Prevent permission denied unhandled exception in FF that can
                // happen when setting focus while another element is handling
                // the blur.  @TODO this is still writing to the error log 
                // (unhandled error) in FF1.5 with strict error checking on.
            }
        }

        this.verifyOffset();

        return !this.isLocked();
    }
1168937
function msLostPointerCapture(inEvent) {
  const e = this.dispatcher.makeEvent('lostpointercapture', inEvent, inEvent);
  this.dispatcher.dispatchEvent(e);
}