X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d7dbc98ae97946a3d91e6653527fc72276d83712..0c0890656219df340e90c8f3ba230c50490096aa:/src/gtk/menu.cpp diff --git a/src/gtk/menu.cpp b/src/gtk/menu.cpp index 6907fe1d68..fd67e5ee80 100644 --- a/src/gtk/menu.cpp +++ b/src/gtk/menu.cpp @@ -488,9 +488,9 @@ void wxMenuItem::SetName( const wxString& str ) #if (GTK_MINOR_VERSION > 0) m_text << _T('_'); } else - if (*pc == _T('/')) + if (*pc == _T('/')) /* we have to filter out slashes ... */ { - m_text << _T('\\'); + m_text << _T('\\'); /* ... and replace them with back slashes */ #endif } else @@ -677,6 +677,12 @@ void wxMenu::Append( int id, const wxString &item, const wxString &helpStr, bool entry.accelerator = hotbuf; break; } + case _T('F'): /* function keys */ + { + strcpy( hotbuf, hotkey.mb_str() ); + entry.accelerator = hotbuf; + break; + } default: { }