mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-11-01 13:13:21 -07:00
feature<Launcher>: supports numpad 1-9
This commit is contained in:
parent
7c98ed4990
commit
fa4cec87e0
1 changed files with 2 additions and 2 deletions
|
@ -126,8 +126,8 @@ namespace SourceGit.Views {
|
|||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < 10; i++) {
|
||||
if (Keyboard.IsKeyDown(Key.D1 + i)) {
|
||||
for (int i = 0; i < 9; i++) {
|
||||
if (Keyboard.IsKeyDown(Key.D1 + i) || Keyboard.IsKeyDown(Key.NumPad1 + i)) {
|
||||
if (tabs.Tabs.Count > i) {
|
||||
tabs.Goto(tabs.Tabs[i].Id);
|
||||
e.Handled = true;
|
||||
|
|
Loading…
Reference in a new issue