diff --git a/src/os2/menu.cpp b/src/os2/menu.cpp index 3ab6173a4b..24f4846a87 100644 --- a/src/os2/menu.cpp +++ b/src/os2/menu.cpp @@ -324,7 +324,6 @@ bool wxMenu::DoInsertOrAppend( // // Menu is just a normal string (passed in data parameter) // - wxSetShortCutKey((wxChar*)pItem->GetText().c_str()); vItem.afStyle |= MIS_TEXT; pData = (char*)pItem->GetText().c_str(); } @@ -913,8 +912,6 @@ bool wxMenuBar::Append( wxCHECK_MSG(hSubmenu, FALSE, wxT("can't append invalid menu to menubar")); - wxSetShortCutKey((wxChar*)rTitle.c_str()); - wxString Title = TextToLabel(rTitle); if (!wxMenuBarBase::Append(pMenu, Title)) return FALSE; @@ -1074,23 +1071,4 @@ wxMenuItem* wxMenuBar::FindItem( return pItem; } // end of wxMenuBar::FindItem -// -// wxWindows' default shortcut identifier is WIN32's "&" but -// OS2's is "~" so we have to change this and must watch for the -// sequence, "&&" converting only the first one -// -void wxSetShortCutKey( - wxChar* zText -) -{ - for (int i = 0; zText[i] != '\0'; i++) - { - if (zText[i] == '&') - { - zText[i] = '~'; - if (zText[i+1] == '&') - i++; - } - } -}