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:
parent
eb5502dcaa
commit
eb3cb4925c
@ -342,7 +342,7 @@ wxString wxAcceleratorEntry::ToString() const
|
||||
// build as they're only defined for the ASCII range (or EOF)
|
||||
wxIsascii(code) &&
|
||||
#endif // ANSI
|
||||
wxIsalnum(code) )
|
||||
wxIsprint(code) )
|
||||
{
|
||||
text << (wxChar)code;
|
||||
}
|
||||
|
@ -302,6 +302,9 @@ wxAcceleratorEntry wxGetStockAccelerator(wxWindowID id)
|
||||
STOCKITEM(wxID_REPLACE, wxACCEL_CTRL,'R')
|
||||
STOCKITEM(wxID_SAVE, wxACCEL_CTRL,'S')
|
||||
STOCKITEM(wxID_UNDO, wxACCEL_CTRL,'Z')
|
||||
#ifdef __WXOSX__
|
||||
STOCKITEM(wxID_PREFERENCES, wxACCEL_CTRL,',')
|
||||
#endif
|
||||
|
||||
default:
|
||||
// set the wxAcceleratorEntry to return into an invalid state:
|
||||
|
Loading…
Reference in New Issue
Block a user