F1 launches about/help.

zmq
Sean McArdle 2016-12-29 21:00:04 -08:00
parent 13a44f7cef
commit 12f7c27c12
2 changed files with 13 additions and 1 deletions

View File

@ -13,7 +13,7 @@
SizeToContent="Height"
MinHeight="450"
Height="600"
Width="525">
Width="525" KeyUp="MainWindow_KeyUp">
<Window.DataContext>
<vm:MainWindowViewModel/>

View File

@ -42,5 +42,17 @@ namespace WifiSitterGui
if (vis == null) return;
if (!vis.IsDescendantOf(WhitelistExpander)) WhitelistExpander.IsExpanded = false;
}
private void MainWindow_KeyUp(object sender, KeyEventArgs e) {
if (_about == null) {
_about = new WifiSitterGui.View.About();
_about.Closed += (s, args) => { _about = null; };
_about.Show();
}
else {
_about.WindowState = WindowState.Normal;
_about.Activate();
}
}
}
}