Function: eca-chat--image-keymap

eca-chat--image-keymap is a natively compiled function defined in eca-chat-image.el.

Signature

(eca-chat--image-keymap COMMAND)

Documentation

Return a keymap running COMMAND on RET and a middle click.

Also on a left click when eca-buttons-allow-mouse is non-nil.

Source Code

;; Defined in /nix/store/jklqzw6pzz6j4jrbv8wy0iwgi7jlrbld-emacs-packages-deps/share/emacs/site-lisp/elpa/eca-20260928.1827/eca-chat-image.el
(defun eca-chat--image-keymap (command)
  "Return a keymap running COMMAND on RET and a middle click.
Also on a left click when `eca-buttons-allow-mouse' is non-nil."
  (let ((map (make-sparse-keymap)))
    (define-key map (kbd "RET") command)
    (define-key map [mouse-2] command)
    (when eca-buttons-allow-mouse
      (define-key map [mouse-1] command))
    map))