mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-21 20:24:59 +00:00
enhance: hotkeys
* add `Shift+Ctrl+Tab` (`⌘+⌥+←` on macOS) to go to previous page * use `ESC` to cancel commit searching * enable `AutoFocusBehaviour` on `CommitChanges` and `RevisionFiles` tab
This commit is contained in:
parent
16741c21e6
commit
b651835de0
7 changed files with 46 additions and 16 deletions
|
@ -93,6 +93,16 @@ namespace SourceGit.ViewModels
|
|||
ActivePage = Pages[nextIdx];
|
||||
}
|
||||
|
||||
public void GotoPrevTab()
|
||||
{
|
||||
if (Pages.Count == 1)
|
||||
return;
|
||||
|
||||
var activeIdx = Pages.IndexOf(_activePage);
|
||||
var prevIdx = activeIdx == 0 ? Pages.Count - 1 : activeIdx - 1;
|
||||
ActivePage = Pages[prevIdx];
|
||||
}
|
||||
|
||||
public void CloseTab(object param)
|
||||
{
|
||||
if (Pages.Count == 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue