Function: kkp--get-keycode-representation

kkp--get-keycode-representation is a natively compiled function defined in kkp.el.

Signature

(kkp--get-keycode-representation KEYCODE MAPPING)

Documentation

Try to lookup the Emacs key representation for KEYCODE in MAPPING.

This is either in the mapping or it is the string representation of the key codepoint.

Source Code

;; Defined in /nix/store/0igl9q4k4n87vg4h2gnnrlha21kx9biv-emacs-packages-deps/share/emacs/site-lisp/elpa/kkp-20260706.858/kkp.el
(defun kkp--get-keycode-representation (keycode mapping)
  "Try to lookup the Emacs key representation for KEYCODE in MAPPING.
This is either in the mapping or it is the string representation of the
key codepoint."
  (let ((rep (alist-get keycode mapping)))
    (if rep
        rep
      (string keycode))))