We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a5abede commit 61d7c5dCopy full SHA for 61d7c5d
eca-util.el
@@ -15,6 +15,11 @@
15
(require 'dash)
16
(require 'transient)
17
18
+(defcustom eca-buttons-allow-mouse nil
19
+ "Whether to allow mouse clicks on ECA buttons."
20
+ :type 'boolean
21
+ :group 'eca)
22
+
23
(defun eca-assoc (map key val)
24
"Return a new MAP with KEY associated to flat plist VAL, replacing any existing."
25
(cons (cons key val)
@@ -165,7 +170,8 @@
165
170
(callback-int (lambda (&rest _)
166
171
(interactive)
167
172
(funcall callback))))
168
- (define-key km (kbd "<mouse-1>") callback-int)
173
+ (when eca-buttons-allow-mouse
174
+ (define-key km (kbd "<mouse-1>") callback-int))
169
175
(define-key km (kbd "<return>") callback-int)
176
(define-key km (kbd "RET") callback-int)
177
(propertize text
0 commit comments