X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/fc7a2a602b4bd9308be21bc07e40a680f483438e..e7c9692f16127b39de2723457cdb2d46e563b383:/src/common/textcmn.cpp diff --git a/src/common/textcmn.cpp b/src/common/textcmn.cpp index 5b8d40343e..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,12 +441,10 @@ bool wxTextCtrlBase::EmulateKeyPress(const wxKeyEvent& event) return TRUE; } -#else - event; -#endif // !__WIN32__ return FALSE; } +#endif // !__WIN32__ // ---------------------------------------------------------------------------- // selection and ranges