From fa4cec87e040e0e32027f1b5c70a6e42df24dfa6 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 2 Jun 2021 18:06:21 +0800 Subject: [PATCH] feature: supports numpad 1-9 --- src/Views/Launcher.xaml.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Views/Launcher.xaml.cs b/src/Views/Launcher.xaml.cs index 6aff44de..0539f2f5 100644 --- a/src/Views/Launcher.xaml.cs +++ b/src/Views/Launcher.xaml.cs @@ -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;