mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-20 19:55:00 +00:00
feature: enhance commit search
* Supports search commits by author/committer email * Auto focus when search panel is visible
This commit is contained in:
parent
f65dc36e62
commit
d0e80be79f
3 changed files with 12 additions and 2 deletions
|
@ -88,6 +88,13 @@ namespace SourceGit.Views {
|
|||
}
|
||||
}
|
||||
|
||||
private void OnSearchCommitPanelPropertyChanged(object sender, AvaloniaPropertyChangedEventArgs e) {
|
||||
var grid = sender as Grid;
|
||||
if (e.Property == IsVisibleProperty && grid.IsVisible) {
|
||||
txtSearchCommitsBox.Focus();
|
||||
}
|
||||
}
|
||||
|
||||
private void OnSearchKeyDown(object sender, KeyEventArgs e) {
|
||||
if (e.Key == Key.Enter) {
|
||||
if (DataContext is ViewModels.Repository repo) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue