Function: dframe-update-keymap
dframe-update-keymap is a byte-compiled function defined in
dframe.el.gz.
Signature
(dframe-update-keymap MAP)
Documentation
Update the keymap MAP for dframe default bindings.
Source Code
;; Defined in /usr/src/emacs/lisp/dframe.el.gz
(defun dframe-update-keymap (map)
"Update the keymap MAP for dframe default bindings."
;; Frame control
(define-key map "q" 'dframe-close-frame)
(define-key map "Q" 'delete-frame)
;; Override switch to buffer to never hack our frame.
(substitute-key-definition 'switch-to-buffer
'dframe-switch-buffer-attached-frame
map global-map)
;; mouse bindings so we can manipulate the items on each line
;; (define-key map [down-mouse-1] 'dframe-double-click)
(define-key map [follow-link] 'mouse-face)
(define-key map [mouse-2] 'dframe-click)
;; This is the power click for new frames, or refreshing a cache
(define-key map [S-mouse-2] 'dframe-power-click)
;; This adds a small unnecessary visual effect
;;(define-key map [down-mouse-2] 'dframe-quick-mouse)
(define-key map [down-mouse-3] 'dframe-popup-kludge)
;; This lets the user scroll as if we had a scrollbar... well maybe not
(define-key map [mode-line mouse-2] 'dframe-mouse-hscroll)
;; another handy place users might click to get our menu.
(define-key map [mode-line down-mouse-1]
'dframe-popup-kludge)
;; We can't switch buffers with the buffer mouse menu. Lets hack it.
(define-key map [C-down-mouse-1] 'dframe-hack-buffer-menu)
;; Lastly, we want to track the mouse. Play here
(define-key map [mouse-movement] 'dframe-track-mouse))