mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08: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++) {
|
for (int i = 0; i < 9; i++) {
|
||||||
if (Keyboard.IsKeyDown(Key.D1 + i)) {
|
if (Keyboard.IsKeyDown(Key.D1 + i) || Keyboard.IsKeyDown(Key.NumPad1 + i)) {
|
||||||
if (tabs.Tabs.Count > i) {
|
if (tabs.Tabs.Count > i) {
|
||||||
tabs.Goto(tabs.Tabs[i].Id);
|
tabs.Goto(tabs.Tabs[i].Id);
|
||||||
e.Handled = true;
|
e.Handled = true;
|
||||||
|
|
Loading…
Reference in a new issue