X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e39af974ef7846e26686ae39d74e4696c1fef0c3..65c75abefc4b06d49421be4af5397d8b3d5647d4:/src/common/textcmn.cpp?ds=sidebyside diff --git a/src/common/textcmn.cpp b/src/common/textcmn.cpp index ff02305ca2..d43238231f 100644 --- a/src/common/textcmn.cpp +++ b/src/common/textcmn.cpp @@ -347,10 +347,15 @@ bool wxTextCtrlBase::CanPaste() const // emulating key presses // ---------------------------------------------------------------------------- +#ifdef __WIN32__ +// the generic version is unused in wxMSW +bool wxTextCtrlBase::EmulateKeyPress(const wxKeyEvent& WXUNUSED(event)) +{ + return FALSE; +} +#else // !__WIN32__ bool wxTextCtrlBase::EmulateKeyPress(const wxKeyEvent& event) { - // the generic version is unused in wxMSW -#ifndef __WIN32__ wxChar ch = 0; int keycode = event.GetKeyCode(); switch ( keycode ) @@ -436,10 +441,10 @@ bool wxTextCtrlBase::EmulateKeyPress(const wxKeyEvent& event) return TRUE; } -#endif // !__WIN32__ return FALSE; } +#endif // !__WIN32__ // ---------------------------------------------------------------------------- // selection and ranges