Function: frame-toggle-on-screen-keyboard

frame-toggle-on-screen-keyboard is a byte-compiled function defined in frame.el.gz.

Signature

(frame-toggle-on-screen-keyboard FRAME HIDE)

Documentation

Display or hide the on-screen keyboard.

On systems with an on-screen keyboard, display the on screen keyboard on behalf of the frame FRAME if HIDE is nil. Else, hide the on screen keyboard.

Return whether or not the on screen keyboard may have been displayed; that is, return t on systems with an on screen keyboard, and nil on those without.

FRAME must already have the input focus for this to work
 reliably.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/frame.el.gz
(defun frame-toggle-on-screen-keyboard (frame hide)
  "Display or hide the on-screen keyboard.
On systems with an on-screen keyboard, display the on screen
keyboard on behalf of the frame FRAME if HIDE is nil.  Else, hide
the on screen keyboard.

Return whether or not the on screen keyboard may have been
displayed; that is, return t on systems with an on screen
keyboard, and nil on those without.

FRAME must already have the input focus for this to work
 reliably."
  (let ((frame-type (framep-on-display frame)))
    (cond ((eq frame-type 'android)
           (android-toggle-on-screen-keyboard frame hide) t)
          (t nil))))