(help-key-description): Show the untranslated keys
when they start with ESC and the ESC was not translated.
This commit is contained in:
parent
410e58b5af
commit
ae1bb8acec
1 changed files with 2 additions and 1 deletions
|
@ -461,7 +461,8 @@ or `keymap' property, return the binding of KEY in the string's keymap."
|
|||
|
||||
(defun help-key-description (key untranslated)
|
||||
(let ((string (key-description key)))
|
||||
(if (or (not untranslated) (eq (aref untranslated 0) ?\e))
|
||||
(if (or (not untranslated)
|
||||
(and (eq (aref untranslated 0) ?\e) (not (eq (aref key 0) ?\e))))
|
||||
string
|
||||
(let ((otherstring (key-description untranslated)))
|
||||
(if (equal string otherstring)
|
||||
|
|
Loading…
Add table
Reference in a new issue