Fix mouse click behavior in customize buffers (issue #15211)

This commit is contained in:
Daniel Nicolai 2021-12-21 15:51:22 +01:00 committed by Maxi Wolff
parent 902d210361
commit 8034e471b5
1 changed files with 3 additions and 0 deletions

View File

@ -116,6 +116,9 @@
;; `scroll-up-command'. Evil `C-d' works instead.
;; - `C-x' as a prefix command still works.
;; - `C-c' as a prefix command still works.
;; - Activating normal-mode makes evil override the custom-mode-map normal-state
;; its mouse button bindings. So we bind them explicitly in normal-state
(evil-define-key 'normal 'custom-mode-map [down-mouse-1] 'widget-button-click)
;; - `u' as `Custom-goto-parent' conflicts with Evil undo. However it is
;; questionable whether this will work properly in a Custom buffer;
;; choosing to restore this binding.