mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 04:34:59 +00:00
feature: add hotkey 'F5' to reload/refresh whole repository
This commit is contained in:
parent
28554d1b04
commit
9b5e8429b9
5 changed files with 31 additions and 12 deletions
|
@ -146,6 +146,15 @@ namespace SourceGit.Views
|
|||
e.Handled = true;
|
||||
return;
|
||||
}
|
||||
else if (e.Key == Key.F5)
|
||||
{
|
||||
if (vm.ActivePage.Data is ViewModels.Repository repo)
|
||||
{
|
||||
repo.RefreshAll();
|
||||
e.Handled = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
base.OnKeyDown(e);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue