X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/62b50655600d64ed3f9d26abe3c05f3e125e671c..a7d354c6d75a32033f62b8ecadd837519b35b3ef:/src/common/cmdproc.cpp?ds=sidebyside diff --git a/src/common/cmdproc.cpp b/src/common/cmdproc.cpp index 9cd4fdda47..789e950f95 100644 --- a/src/common/cmdproc.cpp +++ b/src/common/cmdproc.cpp @@ -60,8 +60,11 @@ wxCommandProcessor::wxCommandProcessor(int maxCommands) #if wxUSE_MENUS m_commandEditMenu = NULL; #endif // wxUSE_MENUS - m_undoAccelerator = wxAcceleratorEntry(wxACCEL_CTRL, 'Z').ToString(); - m_redoAccelerator = wxAcceleratorEntry(wxACCEL_CTRL, 'Y').ToString(); + +#if wxUSE_ACCEL + m_undoAccelerator = '\t' + wxAcceleratorEntry(wxACCEL_CTRL, 'Z').ToString(); + m_redoAccelerator = '\t' + wxAcceleratorEntry(wxACCEL_CTRL, 'Y').ToString(); +#endif // wxUSE_ACCEL m_lastSavedCommand = m_currentCommand = wxList::compatibility_iterator();