mirror of
https://github.com/abo-abo/avy.git
synced 2025-10-14 13:53:04 +00:00
parent
a0ce6a7558
commit
176f34f491
9
avy.el
9
avy.el
@ -424,6 +424,8 @@ KEYS is the path from the root of `avy-tree' to LEAF."
|
|||||||
((memq char '(27 ?\C-g))
|
((memq char '(27 ?\C-g))
|
||||||
;; exit silently
|
;; exit silently
|
||||||
(throw 'done 'exit))
|
(throw 'done 'exit))
|
||||||
|
((avy-mouse-press-event-p char)
|
||||||
|
(signal 'user-error "Mouse event not handled" char))
|
||||||
(t
|
(t
|
||||||
(signal 'user-error (list "No such candidate" char))
|
(signal 'user-error (list "No such candidate" char))
|
||||||
(throw 'done nil)))))
|
(throw 'done nil)))))
|
||||||
@ -872,9 +874,10 @@ Do this even when the char is terminating."
|
|||||||
|
|
||||||
(defun avy--key-to-char (c)
|
(defun avy--key-to-char (c)
|
||||||
"If C is no character, translate it using `avy-key-to-char-alist'."
|
"If C is no character, translate it using `avy-key-to-char-alist'."
|
||||||
(if (characterp c)
|
(cond ((characterp c) c)
|
||||||
c
|
((cdr (assoc c avy-key-to-char-alist)))
|
||||||
(or (cdr (assoc c avy-key-to-char-alist))
|
((mouse-event-p c) c)
|
||||||
|
(t
|
||||||
(error "Unknown key %s" c))))
|
(error "Unknown key %s" c))))
|
||||||
|
|
||||||
(defun avy-candidate-beg (leaf)
|
(defun avy-candidate-beg (leaf)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user