Function: minibuffer-exit-on-screen-keyboard

minibuffer-exit-on-screen-keyboard is a byte-compiled function defined in minibuffer.el.gz.

Signature

(minibuffer-exit-on-screen-keyboard)

Documentation

Hide the on-screen keyboard if it was displayed.

Hide the on-screen keyboard in a timer set to run in 0.1 seconds. It will be canceled if the minibuffer is displayed again within that timeframe.

Do not hide the on screen keyboard inside a recursive edit. Likewise, do not hide the on screen keyboard if point in the window that will be selected after exiting the minibuffer is not on read-only text.

The latter is implemented in touch-screen.el.

Source Code

;; Defined in /usr/src/emacs/lisp/minibuffer.el.gz
(defun minibuffer-exit-on-screen-keyboard ()
  "Hide the on-screen keyboard if it was displayed.
Hide the on-screen keyboard in a timer set to run in 0.1 seconds.
It will be canceled if the minibuffer is displayed again within
that timeframe.

Do not hide the on screen keyboard inside a recursive edit.
Likewise, do not hide the on screen keyboard if point in the
window that will be selected after exiting the minibuffer is not
on read-only text.

The latter is implemented in `touch-screen.el'."
  (unless (or (not minibuffer-on-screen-keyboard-displayed)
              (> (recursion-depth) 1))
    (when minibuffer-on-screen-keyboard-timer
      (cancel-timer minibuffer-on-screen-keyboard-timer))
    (setq minibuffer-on-screen-keyboard-timer
          (run-with-timer 0.1 nil #'frame-toggle-on-screen-keyboard
                          (selected-frame) t))))