Hi all,
--
TL;DR: Can we please update AcceleratorList when clearing accelerators? Is there any way we can fully clear an accelerator and fully restore default behavior? Thank you.
--
I saw this issue previously on the forums, but it seems to still be cropping up.
It seems like accelerators remain on AcceleratorList() after being cleared.
First, we set an Accelerator with either Accelerator("Ctrl+Q", "say hi") or AcceleratorTo("Ctrl+Q", "say hi", 0), for example.
AcceleratorList() will show:
Key: "Ctrl-Q"
Value: "say hi"
Pressing Ctrl-Q sends the command as expected.
Next, we clear the accelerator using Accelerator("Ctrl+Q", ""), for example.
Now, we press Ctrl-Q, the command is no longer sent - OK.
However, we still see the old key/value pair in AcceleratorList().
Also, it seems like setting the accelerator to "" actually just sets the accelerator to execute an empty command, although I may be mistaken. For example, if you overwrite Ctrl-C and then clear the Accelerator, default (copy) behavior is not restored and it appears to continue to send a blank command.
Any chance we can have a function that will allow us to fully restore behavior?
Thanks for the time.
--
TL;DR: Can we please update AcceleratorList when clearing accelerators? Is there any way we can fully clear an accelerator and fully restore default behavior? Thank you.
--
I saw this issue previously on the forums, but it seems to still be cropping up.
It seems like accelerators remain on AcceleratorList() after being cleared.
First, we set an Accelerator with either Accelerator("Ctrl+Q", "say hi") or AcceleratorTo("Ctrl+Q", "say hi", 0), for example.
AcceleratorList() will show:
Key: "Ctrl-Q"
Value: "say hi"
Pressing Ctrl-Q sends the command as expected.
Next, we clear the accelerator using Accelerator("Ctrl+Q", ""), for example.
Now, we press Ctrl-Q, the command is no longer sent - OK.
However, we still see the old key/value pair in AcceleratorList().
Also, it seems like setting the accelerator to "" actually just sets the accelerator to execute an empty command, although I may be mistaken. For example, if you overwrite Ctrl-C and then clear the Accelerator, default (copy) behavior is not restored and it appears to continue to send a blank command.
Any chance we can have a function that will allow us to fully restore behavior?
Thanks for the time.