allow the user to press Esc to close preview frame wherever the focus is, not only if it's on the canvas itself (patch 1719276)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@48841 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-09-20 23:11:22 +00:00
parent 0edeeb6d96
commit 043c67059f
2 changed files with 23 additions and 14 deletions

View File

@@ -388,8 +388,10 @@ protected:
wxWindowDisabler* m_windowDisabler;
private:
DECLARE_CLASS(wxPreviewFrame)
void OnChar(wxKeyEvent& event);
DECLARE_EVENT_TABLE()
DECLARE_CLASS(wxPreviewFrame)
DECLARE_NO_COPY_CLASS(wxPreviewFrame)
};