From c749f961efd5212f73bc95b84e291fc68c958db3 Mon Sep 17 00:00:00 2001 From: FlatOutPS2 Date: Sun, 14 Jan 2018 20:52:35 +0100 Subject: [PATCH] PCSX2: Add keyboard shortcuts to memory card dialog right-click menu --- pcsx2/gui/Panels/MemoryCardListPanel.cpp | 26 +++++++++++------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/pcsx2/gui/Panels/MemoryCardListPanel.cpp b/pcsx2/gui/Panels/MemoryCardListPanel.cpp index 983a131349..d76af52df2 100644 --- a/pcsx2/gui/Panels/MemoryCardListPanel.cpp +++ b/pcsx2/gui/Panels/MemoryCardListPanel.cpp @@ -1016,29 +1016,27 @@ void Panels::MemoryCardListPanel_Simple::OnOpenItemContextMenu(wxListEvent& evt) wxMenu* junk = new wxMenu(); - if( idx != wxNOT_FOUND ) - { + if (idx != wxNOT_FOUND) { const McdSlotItem& card( GetCardForViewIndex(idx) ); - if (card.IsPresent){ - junk->Append( McdMenuId_AssignUnassign, card.Slot>=0?_("Eject card"):_("Insert card ...") ); - junk->Append( McdMenuId_Duplicate, _("Duplicate card ...") ); - junk->Append( McdMenuId_Rename, _("Rename card ...") ); - junk->Append( McdMenuId_Create, _("Delete card") ); + if (card.IsPresent) { + junk->Append(McdMenuId_AssignUnassign, card.Slot>=0?_("&Eject card"):_("&Insert card ...")); + junk->Append(McdMenuId_Duplicate, _("D&uplicate card ...")); + junk->Append(McdMenuId_Rename, _("&Rename card ...")); + junk->Append(McdMenuId_Create, _("&Delete card")); if (card.IsFormatted && !card.IsPSX) { - junk->Append( McdMenuId_Convert, _("Convert card") ); + junk->Append(McdMenuId_Convert, _("&Convert card")); } + } else { + junk->Append(McdMenuId_Create, _("&Create a new card ...")); } - else - junk->Append( McdMenuId_Create, _("Create a new card ...") ); - + } else { + junk->Append(McdMenuId_Create, _("&Create a new card ...")); } - else - junk->Append( McdMenuId_Create, _("Create a new card ...") ); junk->AppendSeparator(); - junk->Append( McdMenuId_RefreshList, _("Refresh List") ); + junk->Append(McdMenuId_RefreshList, _("Re&fresh List")); PopupMenu( junk ); m_listview->RefreshItem( idx );