1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-07-06 16:29:03 +00:00

Put focus on code list after opening project

Setting the focus allows certain key commands (like up/down arrows)
to work without having to click in the code list first.
This commit is contained in:
Andy McFadden 2020-07-25 11:35:27 -07:00
parent 2a65457e19
commit c380b001b7

View File

@ -281,6 +281,10 @@ namespace SourceGen.WpfGui {
mShowCodeListView = value;
OnPropertyChanged("LaunchPanelVisibility");
OnPropertyChanged("CodeListVisibility");
if (value) {
// Put the focus on the list view. Doesn't select anything.
codeListView.Focus();
}
}
}
private bool mShowCodeListView;