the Ctrl+Backspace
keyboard shortcut normally deletes the word to the left from the caret. But it does not work in any of the standard Delphi controls you would expect (TEdit
, TMemo
, TComboBox
ect.). Interestingly, Ctrl+Delete
works just fine.
Does anybody know how to correct this behaviour easily?
I know that overriding the KeyDown
procedure would do it, but this is a rather too complicated as KeyDown
has to be overridden for every component.
TEdit
and the other controls are merely wrappers for the native Microsoft Windows controls, and they behave like this. Try, for instance, the edit box in Notepad's 'Select Font' dialog. Edit controls with auto-completion enabled, however, accept the Ctrl+Backspace hotkey. – Andreas Rejbrandsaid
. – TLama