feature: hotkeys enhancement. see issue #19

This commit is contained in:
leo 2024-03-05 10:46:08 +08:00
parent b309c1c346
commit acb74a4b95
8 changed files with 167 additions and 13 deletions

View file

@ -45,18 +45,6 @@ namespace SourceGit.Views {
InitializeComponent();
}
protected override void OnKeyDown(KeyEventArgs e) {
if (e.Key == Key.F && e.KeyModifiers == KeyModifiers.Control) {
if (DataContext is ViewModels.Repository repo) {
repo.IsSearching = true;
e.Handled = true;
return;
}
}
base.OnKeyDown(e);
}
private void OnLocalBranchTreeLostFocus(object sender, RoutedEventArgs e) {
if (sender is TreeView tree) tree.UnselectAll();
}