As described here, RichEdit controls have a lot of built-in shortcuts for various functions.
I have TRichEdit
controls in a Delphi 7 application where I would like to remove some (but probably not all) of those shortcuts. There is no such method described in msdn.
I am currently simply using OnKeyDown
and OnKeyUp
event handlers for this purpose, but this isn't a very elegant solution, since I have to add code for every TRichEdit
control, and often I'm adding OnKeyDown
and OnKeyUp
event handlers only for this.
I would like to implement a more elegant solution that deals with those shortcuts globally, like using an interceptor class, but I don't know how to intercept and discard those shortcuts. Any ideas?