How to know the hotkey used to execute a command

Is there a variable that allows me to know the hotkey used to execute a certain command?
I can see that via scripting, you can tell if a command was called by a hotkey or not, but not which one it was.
A case where it can be useful: If I want to create several hotkeys using ctrl+shift and digits from 0 to 9, that execute a command that uses the digit as a value, instead of creating 9 separate hotkeys, I could create one with several alternative ones, and then something like :


Also could be available through scripting via ClickData object.

1 Like