Skip to content

Commit

Permalink
changed behavior for ESC key in setup dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
mastersign committed Jul 6, 2018
1 parent 53f8747 commit 4ae979b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
12 changes: 10 additions & 2 deletions BenchManager/BenchDashboard/SetupForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -653,11 +653,19 @@ private async void KeyDownDownHandler(object sender, KeyEventArgs e)
{
var cancelation = core.Cancelation;
if (cancelation != null) cancelation.Cancel();
return;
}
else
if (BusyPanelVisible)
{
BusyPanelVisible = false;
return;
}
if (appList.HasSearchFilter)
{
Close();
appList.ResetSearchFilter();
return;
}
Close();
}
else if (e.KeyCode == Keys.F && e.Modifiers == Keys.Control)
appList.FocusSearchBox();
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,13 @@ Add a link to the GitHub diff like
### Added
* Menu item _View_ → _Last Logfile_

### Changed
* Behavior of ESC key in setup dialog:
1. Cancel running task
2. Close task progress view
3. Clear search
4. Close setup dialog

### Fixed
* Apply search filter after reloading the Bench configuration
([#134](https://github.com/mastersign/bench/issues/134))
Expand Down

0 comments on commit 4ae979b

Please sign in to comment.