I'm trying to set up my keypad to change commands based on certain things, and then I want to delete the accelerators or revert them to what they were before. This seems especially tricky, so I'm wondering if I'm missing something here. Keep in mind that this script will be used by others, and I want to keep it general enough to play nice with whatever accelerators they have configured.
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.
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?).
3. I have to loop on all the accelerators to get the value for any one macro? Why no lookup table functionality?
I know I can hardcode the keypad accelerators to what I want, but I'm trying to be efficient and user friendly, so any advice?
Thanks.
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.
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?).
3. I have to loop on all the accelerators to get the value for any one macro? Why no lookup table functionality?
I know I can hardcode the keypad accelerators to what I want, but I'm trying to be efficient and user friendly, so any advice?
Thanks.