Function: hui:menu-item-key

hui:menu-item-key is a byte-compiled function defined in hui-mini.el.

Signature

(hui:menu-item-key ITEM)

Documentation

Return the first capital letter in ITEM or if none, its first character.

Source Code

;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hui-mini.el
(defun hui:menu-item-key (item)
  "Return the first capital letter in ITEM or if none, its first character."
  (or (catch 'capital
	(progn (mapc (lambda (c) (and (<= ?A c) (>= ?Z c)
				      (throw 'capital c)))
		     item)
	       ;; Ensure nil is returned from catch if no
	       ;; matching char is found
	       nil))
      (aref item 0)))