Larkin said: 1. I have my keypad configured in the Configuration -> Input -> Keypad, but those are not real accelerators. They don't show in AcceleratorList, so I don't know how to grab the commands and save them to be restored later.
I believe you can use ExportXML(5, "") to get the keypad settings as XML. Then if you're using Lua you can use utils.xmlread() to turn it into a nested Lua table. It should be reasonably easy to turn that back into XML and pass it to ImportXML().
Larkin said: 2. There seems to be no way to delete an accelerator, such as setting it to nil, and when I use an empty string, it doesn't do anything, though the documentation says it will revert to what it was previously (how does it know?).
"what it was previously" likely refers to the keybinding's default, if any. For example, Ctrl+C's default is to copy, and Ctrl+S saves the world. |