adding command - comma as shortcut of stockitem wxID_PRERENCES on OSX - and make sure it's working by adapting ToString()

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@68957 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2011-08-30 07:01:25 +00:00
parent eb5502dcaa
commit eb3cb4925c
2 changed files with 4 additions and 1 deletions

View File

@@ -342,7 +342,7 @@ wxString wxAcceleratorEntry::ToString() const
// build as they're only defined for the ASCII range (or EOF) // build as they're only defined for the ASCII range (or EOF)
wxIsascii(code) && wxIsascii(code) &&
#endif // ANSI #endif // ANSI
wxIsalnum(code) ) wxIsprint(code) )
{ {
text << (wxChar)code; text << (wxChar)code;
} }

View File

@@ -302,6 +302,9 @@ wxAcceleratorEntry wxGetStockAccelerator(wxWindowID id)
STOCKITEM(wxID_REPLACE, wxACCEL_CTRL,'R') STOCKITEM(wxID_REPLACE, wxACCEL_CTRL,'R')
STOCKITEM(wxID_SAVE, wxACCEL_CTRL,'S') STOCKITEM(wxID_SAVE, wxACCEL_CTRL,'S')
STOCKITEM(wxID_UNDO, wxACCEL_CTRL,'Z') STOCKITEM(wxID_UNDO, wxACCEL_CTRL,'Z')
#ifdef __WXOSX__
STOCKITEM(wxID_PREFERENCES, wxACCEL_CTRL,',')
#endif
default: default:
// set the wxAcceleratorEntry to return into an invalid state: // set the wxAcceleratorEntry to return into an invalid state: