Copy and pasted over the Key check, now checks keypress with switch.

wix
MCARDLE Sean M 2016-12-29 21:45:17 -08:00
parent 73ccb93123
commit 4eeaf72d9f
1 changed files with 12 additions and 8 deletions

View File

@ -44,14 +44,18 @@ namespace WifiSitterGui
}
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();
switch (e.Key) {
case Key.F1:
if (_about == null) {
_about = new WifiSitterGui.View.About();
_about.Closed += (s, args) => { _about = null; };
_about.Show();
}
else {
_about.WindowState = WindowState.Normal;
_about.Activate();
}
break;
}
}
}