Seems that src/keyboard.c
file contains C string arrays for (info "(elisp) Function Keys")
.
Is there a way to get that list in Elisp?
I discovered that such symbols have special properties:
(symbol-plist 'backspace)
==> (event-symbol-element-mask (backspace 0) event-symbol-elements (backspace) ascii-character 127 event-kind function-key modifier-cache ((8388608 . s-backspace) (201326592 . C-M-backspace) (134217728 . M-backspace) (67108864 . C-backspace) (0 . backspace) (100663296 . C-S-backspace)))
But some of them:
(symbol-plist 'XF86AudioPlay)
are empty until I press corresponding key.
For all pressed keys it is:
(mapatoms (lambda (ob) (when (eq (get ob 'event-kind) 'function-key)
(message "%s" ob)))
obarray)
You ask why? Because I dig in Emacs internals...