mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-06 19:44:58 +00:00
refactor: commit message
- move issue tracker and commit hash links parsing to view models - parsing links async - make sure matched hash is a valid commit oid - disable `CHILDREN` row in submodule info panel Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
5301a368e0
commit
b75676a7f8
17 changed files with 191 additions and 186 deletions
|
@ -23,7 +23,7 @@ namespace SourceGit.Views
|
|||
}
|
||||
else if (e.Key == Key.Down || e.Key == Key.Up)
|
||||
{
|
||||
if (vm.IsRevisionFileSearchSuggestionOpen)
|
||||
if (vm.RevisionFileSearchSuggestion.Count > 0)
|
||||
{
|
||||
SearchSuggestionBox.Focus(NavigationMethod.Tab);
|
||||
SearchSuggestionBox.SelectedIndex = 0;
|
||||
|
@ -33,12 +33,7 @@ namespace SourceGit.Views
|
|||
}
|
||||
else if (e.Key == Key.Escape)
|
||||
{
|
||||
if (vm.IsRevisionFileSearchSuggestionOpen)
|
||||
{
|
||||
vm.RevisionFileSearchSuggestion.Clear();
|
||||
vm.IsRevisionFileSearchSuggestionOpen = false;
|
||||
}
|
||||
|
||||
vm.CancelRevisionFileSuggestions();
|
||||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
|
@ -57,7 +52,7 @@ namespace SourceGit.Views
|
|||
|
||||
if (e.Key == Key.Escape)
|
||||
{
|
||||
vm.RevisionFileSearchSuggestion.Clear();
|
||||
vm.CancelRevisionFileSuggestions();
|
||||
e.Handled = true;
|
||||
}
|
||||
else if (e.Key == Key.Enter && SearchSuggestionBox.SelectedItem is string content)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue