I am developing a Word addin, and somehow the shortcuts defined in TAction.ShortCut always fire more than once, and itβs hard for me and hard to solve, so I resorted to the TForm.OnKeyDown event and cleared all the TAction.ShortCut, this approach works OK, except that the shortcuts do not appear in the corresponding menu items, but I want them to appear in these menu items.
So, I come to this idea: set the values ββfor TMenuItem.Shortcut so that the program can show the label hint to the end user and does not allow VCL to process these labels, instead process them in TForm.OnKeyDown. So my question is how to disable TAction.Shortcut or TMenuItem.Shortcut? Thank you in advance.
source
share