]> git.saurik.com Git - wxWidgets.git/blobdiff - src/common/cmdproc.cpp
better docs for Get/SetLabel methods
[wxWidgets.git] / src / common / cmdproc.cpp
index 9cd4fdda472d553fde1d590e6b203a80da4480fe..789e950f95abd09ef8ded525709314174572f54d 100644 (file)
@@ -60,8 +60,11 @@ wxCommandProcessor::wxCommandProcessor(int maxCommands)
 #if wxUSE_MENUS
     m_commandEditMenu = NULL;
 #endif // wxUSE_MENUS
 #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();
 
     m_lastSavedCommand =
     m_currentCommand = wxList::compatibility_iterator();