feature: add hotkey 'F5' to reload/refresh whole repository

This commit is contained in:
leo 2024-04-28 10:19:12 +08:00
parent 28554d1b04
commit 9b5e8429b9
5 changed files with 31 additions and 12 deletions

View file

@ -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);
}