mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-24 20:05:00 +00:00
Added CTRL+N shortcut
This commit is contained in:
parent
790e1f6c4b
commit
49d0fcbdf8
4 changed files with 24 additions and 3 deletions
|
@ -136,6 +136,22 @@ namespace SourceGit.Views
|
|||
return;
|
||||
}
|
||||
|
||||
if (e.Key == Key.N)
|
||||
{
|
||||
if (vm.ActivePage.Data is not ViewModels.Welcome)
|
||||
{
|
||||
vm.AddNewTab();
|
||||
}
|
||||
|
||||
if (vm.ActivePage.Data is ViewModels.Welcome welcome)
|
||||
{
|
||||
welcome.Clone();
|
||||
}
|
||||
|
||||
e.Handled = true;
|
||||
return;
|
||||
}
|
||||
|
||||
if ((OperatingSystem.IsMacOS() && e.KeyModifiers.HasFlag(KeyModifiers.Alt) && e.Key == Key.Right) ||
|
||||
(!OperatingSystem.IsMacOS() && !e.KeyModifiers.HasFlag(KeyModifiers.Shift) && e.Key == Key.Tab))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue