Hotkey editor scripting


3ds max intruduced the new hotkey editor in later versions of max

is there a way to assign a shortcut to a macro button the same way the hokey editor do it through max script ?

a space to catch the prefered key shortcut when pressed and an “assign” button to do it