feature<DiffViewer>: use Shift instead of Alt for horizontal scrolling in diff viewer

This commit is contained in:
leo 2021-05-13 14:17:53 +08:00
parent 7551031b93
commit 524eb8ef6d

View file

@ -570,7 +570,7 @@ namespace SourceGit.Views.Widgets {
} }
private void OnTextDiffPreviewMouseWheel(object sender, MouseWheelEventArgs e) { 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; var editor = sender as DataGrid;
if (editor == null) return; if (editor == null) return;