Variable: button-map

button-map is a variable defined in button.el.gz.

Value

<follow-link>            mouse-face
<header-line> <mouse-2>  push-button
<mode-line> <mouse-2>    push-button
<mouse-2>                push-button
RET                      push-button

Documentation

Keymap used by buttons.

Source Code

;; Defined in /usr/src/emacs/lisp/button.el.gz
(defvar button-map
  (let ((map (make-sparse-keymap)))
    ;; The following definition needs to avoid using escape sequences that
    ;; might get converted to ^M when building loaddefs.el
    (define-key map [(control ?m)] 'push-button)
    (define-key map [mouse-2] 'push-button)
    (define-key map [follow-link] 'mouse-face)
    ;; FIXME: You'd think that for keymaps coming from text-properties on the
    ;; mode-line or header-line, the `mode-line' or `header-line' prefix
    ;; shouldn't be necessary!
    (define-key map [mode-line mouse-2] 'push-button)
    (define-key map [header-line mouse-2] 'push-button)
    map)
  "Keymap used by buttons.")