diff --git a/src/commands/ScreenshotCommand.cpp b/src/commands/ScreenshotCommand.cpp index 56f4d91fa..ef3f62f4d 100644 --- a/src/commands/ScreenshotCommand.cpp +++ b/src/commands/ScreenshotCommand.cpp @@ -275,13 +275,19 @@ void ExploreMenu( wxMenu * pMenu, int Id, int depth ){ size_t lcnt = list.GetCount(); wxMenuItem * item; wxString Label; + wxString Accel; for (size_t lndx = 0; lndx < lcnt; lndx++) { item = list.Item(lndx)->GetData(); Label = item->GetItemLabelText(); + Accel = item->GetItemLabel(); + if( Accel.Contains("\t") ) + Accel = Accel.AfterLast('\t'); + else + Accel = ""; if( item->IsSeparator() ) Label = "----"; - wxLogDebug("%2i: %s", depth, Label ); + wxLogDebug("%2i,%s,%s", depth, Label,Accel ); if (item->IsSubMenu()) { pMenu = item->GetSubMenu(); ExploreMenu( pMenu, item->GetId(), depth+1 ); diff --git a/src/widgets/KeyView.cpp b/src/widgets/KeyView.cpp index b8467c591..de65a6cdf 100644 --- a/src/widgets/KeyView.cpp +++ b/src/widgets/KeyView.cpp @@ -351,6 +351,11 @@ KeyView::SetView(ViewByType type) SelectNode(index); } + int nLines = mLines.GetCount(); + for(int i=0;idepth, mLines[i]->label, mLines[i]->key ); + } + return; }