- 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