fix(spacemacs-buffer): fix mouse clicks and drags (#15872)

fixes https://github.com/syl20bnr/spacemacs/issues/15870
This commit is contained in:
Lucius Hu 2023-01-05 15:57:52 -05:00 committed by GitHub
parent c22d3d174f
commit 948fb1389a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,6 +123,12 @@ It's cleared when the idle timer runs.")
(define-key map (kbd "9") 'spacemacs-buffer/jump-to-number-startup-list-line))
(define-key map [down-mouse-1] 'spacemacs-buffer//mouse-1)
(define-key map [mouse-1] 'ignore) ;; left button, avoid multiple clicks
(define-key map [mouse-2] 'ignore) ;; mid button
(define-key map [mouse-3] 'ignore) ;; right button
(define-key map [drag-mouse-1] 'ignore)
(define-key map [drag-mouse-2] 'ignore)
(define-key map [drag-mouse-3] 'ignore)
(define-key map (kbd "RET") 'spacemacs-buffer/return)
(define-key map [tab] 'widget-forward)