mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 12:15:00 +00:00
Adding hotkeys for creating branch, pushing and pulling (#657)
This commit is contained in:
parent
fdf30aa7cc
commit
2e6eca26f7
5 changed files with 47 additions and 12 deletions
|
@ -4,6 +4,7 @@ using System.Collections.Generic;
|
|||
using System.Text;
|
||||
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Input;
|
||||
using Avalonia.Platform.Storage;
|
||||
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
|
@ -544,6 +545,7 @@ namespace SourceGit.ViewModels
|
|||
var createBranch = new MenuItem();
|
||||
createBranch.Icon = App.CreateMenuIcon("Icons.Branch.Add");
|
||||
createBranch.Header = App.Text("CreateBranch");
|
||||
createBranch.HotKey = new KeyGesture(Key.B, KeyModifiers.Control);
|
||||
createBranch.Click += (_, e) =>
|
||||
{
|
||||
if (PopupHost.CanCreatePopup())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue