From 524eb8ef6dc4314e4d91c2607f2157e508c4d956 Mon Sep 17 00:00:00 2001 From: leo Date: Thu, 13 May 2021 14:17:53 +0800 Subject: [PATCH] feature: use Shift instead of Alt for horizontal scrolling in diff viewer --- src/Views/Widgets/DiffViewer.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Views/Widgets/DiffViewer.xaml.cs b/src/Views/Widgets/DiffViewer.xaml.cs index 83e4f2c5..beeb91db 100644 --- a/src/Views/Widgets/DiffViewer.xaml.cs +++ b/src/Views/Widgets/DiffViewer.xaml.cs @@ -570,7 +570,7 @@ namespace SourceGit.Views.Widgets { } private void OnTextDiffPreviewMouseWheel(object sender, MouseWheelEventArgs e) { - if (Keyboard.IsKeyDown(Key.LeftAlt) || Keyboard.IsKeyDown(Key.RightAlt)) { + if (Keyboard.IsKeyDown(Key.LeftShift) || Keyboard.IsKeyDown(Key.RightShift)) { var editor = sender as DataGrid; if (editor == null) return;