X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9a83f860948059b0273b5cc6d9e43fadad3ebfca..2ea60735163ce5ae73b8f089b0a982e65853c9f8:/src/common/cmdproc.cpp diff --git a/src/common/cmdproc.cpp b/src/common/cmdproc.cpp index 5ece41e787..2ab9be0b0d 100644 --- a/src/common/cmdproc.cpp +++ b/src/common/cmdproc.cpp @@ -28,6 +28,7 @@ #include "wx/intl.h" #include "wx/string.h" #include "wx/menu.h" + #include "wx/accel.h" #endif //WX_PRECOMP #include "wx/cmdproc.h" @@ -59,8 +60,8 @@ wxCommandProcessor::wxCommandProcessor(int maxCommands) #if wxUSE_MENUS m_commandEditMenu = NULL; #endif // wxUSE_MENUS - m_undoAccelerator = wxT("\tCtrl+Z"); - m_redoAccelerator = wxT("\tCtrl+Y"); + m_undoAccelerator = '\t' + wxAcceleratorEntry(wxACCEL_CTRL, 'Z').ToString(); + m_redoAccelerator = '\t' + wxAcceleratorEntry(wxACCEL_CTRL, 'Y').ToString(); m_lastSavedCommand = m_currentCommand = wxList::compatibility_iterator();