From b5f2c8b5834f41aba5a4edcaff42a6ec2c97823c Mon Sep 17 00:00:00 2001 From: Betsegaw Tadele Date: Wed, 1 Apr 2020 06:09:37 -0700 Subject: [PATCH] [Window Walker] Enable tabbing to scroll (#1814) * Enable tabbing to scroll * Also handle Shift + Tab --- src/modules/windowwalker/app/Window Walker/MainWindow.xaml | 2 +- src/modules/windowwalker/app/Window Walker/MainWindow.xaml.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/windowwalker/app/Window Walker/MainWindow.xaml b/src/modules/windowwalker/app/Window Walker/MainWindow.xaml index 749cde73bb..4d628731fe 100644 --- a/src/modules/windowwalker/app/Window Walker/MainWindow.xaml +++ b/src/modules/windowwalker/app/Window Walker/MainWindow.xaml @@ -29,7 +29,7 @@ - + diff --git a/src/modules/windowwalker/app/Window Walker/MainWindow.xaml.cs b/src/modules/windowwalker/app/Window Walker/MainWindow.xaml.cs index e505c8d11a..9fe480afa9 100644 --- a/src/modules/windowwalker/app/Window Walker/MainWindow.xaml.cs +++ b/src/modules/windowwalker/app/Window Walker/MainWindow.xaml.cs @@ -68,14 +68,14 @@ namespace WindowWalker viewModel.WindowHideCommand.Execute(null); } } - else if (e.Key == Key.Down) + else if (e.Key == Key.Down || (e.Key == Key.Tab && Keyboard.Modifiers != ModifierKeys.Shift)) { if (viewModel.WindowNavigateToNextResultCommand.CanExecute(null)) { viewModel.WindowNavigateToNextResultCommand.Execute(null); } } - else if (e.Key == Key.Up) + else if (e.Key == Key.Up || (e.Key == Key.Tab && Keyboard.Modifiers == ModifierKeys.Shift)) { if (viewModel.WindowNavigateToPreviousResultCommand.CanExecute(null)) {