mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 19:55:00 +00:00
feature: hotkeys enhancement. see issue #19
This commit is contained in:
parent
b309c1c346
commit
acb74a4b95
8 changed files with 167 additions and 13 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue