Is there a general way to do this? I'm looking for a function that accepts an arbitrary keyboard shortcut, and returns the corresponding function name.
C-h k runs the command describe-key
Display documentation of the function invoked by KEY. KEY can be any kind of a key sequence; it can include keyboard events, mouse events, and/or menu events.
When calling from a program, pass KEY as a string or a vector.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With