Function: avy--key-to-char

avy--key-to-char is a byte-compiled function defined in avy.el.

Signature

(avy--key-to-char C)

Documentation

If C is no character, translate it using avy-key-to-char-alist.

Source Code

;; Defined in ~/.emacs.d/elpa/avy-20241101.1357/avy.el
(defun avy--key-to-char (c)
  "If C is no character, translate it using `avy-key-to-char-alist'."
  (cond ((characterp c) c)
        ((cdr (assoc c avy-key-to-char-alist)))
        ((mouse-event-p c) c)
        (t
         (error "Unknown key %s" c))))