The Main window registers shortcuts for all the function keys in order to generate the OnAccelKeyPressed event.
If a shortcut is defined in an action, the main window is supposed to free it by deleting its previously registered shortcut.
Still, the old shortcut still lives and is triggered half of the times.
Changes in this PR:
Disable the old accelerator before deleting it to ensure it doesn't mess with the action accellerator
The Main window registers shortcuts for all the function keys in order to generate the OnAccelKeyPressed event. If a shortcut is defined in an action, the main window is supposed to free it by deleting its previously registered shortcut. Still, the old shortcut still lives and is triggered half of the times. Changes in this PR: Disable the old accelerator before deleting it to ensure it doesn't mess with the action accellerator
Related to #1096 Reported by @Ziginox on IRC