Update all controls using in-place editors to handle Escape/Return correctly.
Define EVT_CHAR_HOOK handlers to ensure that pressing Escape/Return while an in-place edit control is active affects only it and is not used for the keyboard navigation. Closes #9102. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69897 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -439,6 +439,13 @@ protected:
|
||||
bool m_quickBestSize;
|
||||
|
||||
|
||||
private:
|
||||
// Intercept Escape and Return keys to ensure that our in-place edit
|
||||
// control always gets them before they're used for dialog navigation or
|
||||
// anything else.
|
||||
void OnCharHook(wxKeyEvent& event);
|
||||
|
||||
|
||||
wxDECLARE_NO_COPY_CLASS(wxTreeCtrlBase);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user