mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-21 05:10:25 +08:00
fix: only trigger deleting tag when pressing Key.Delete or Key.Back (#1412)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
@@ -217,6 +217,9 @@ namespace SourceGit.Views
|
||||
|
||||
private void OnKeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
if (e.Key is not (Key.Delete or Key.Back))
|
||||
return;
|
||||
|
||||
if (DataContext is not ViewModels.Repository repo)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user