Implement support for Ctrl+Backspace in plain EDIT controls

This shortcut is undocumented, but works in rich edit controls and even
in plain ones if they use SHAutoComplete(), so support it in all
controls because this is what people expect.
This commit is contained in:
Vadim Zeitlin
2021-04-08 00:18:58 +01:00
parent 1007259504
commit 1248829802
2 changed files with 122 additions and 0 deletions

View File

@@ -294,6 +294,13 @@ private:
virtual void MSWProcessSpecialKey(wxKeyEvent& event) wxOVERRIDE;
#endif // wxUSE_OLE
// Do we need to handle Ctrl+Backspace ourselves?
bool MSWNeedsToHandleCtrlBackspace() const;
// Delete backwards until the start of the previous word before caret in a
// way compatible with the standard MSW Ctrl+Backspace shortcut.
void MSWDeleteWordBack();
void OnKeyDown(wxKeyEvent& event);
// Used by EN_MAXTEXT handler to increase the size limit (will do nothing