Exchange shortcuts Shift+Mousewheel and Alt+Mousewheel, so Shift is for horizontal scrolling (inversing vertical scrolling), and Alt is for the more esoteric vertical-scrolling-with-focus-moving. See #142.

This commit is contained in:
Ansgar Becker
2018-02-18 14:06:49 +01:00
parent 76230dfd59
commit 25717dc222

View File

@ -8726,8 +8726,7 @@ var
begin
// Advance to next or previous grid node on Shift+MouseWheel
VT := Sender as TVirtualStringTree;
// TODO: why not use "ssShift in Shift" instead?
if KeyPressed(VK_SHIFT) then begin
if ssAlt in Shift then begin
if Assigned(VT.FocusedNode) then begin
if WheelDelta > 0 then
Node := VT.FocusedNode.PrevSibling
@ -8748,7 +8747,7 @@ begin
AppSettings.ResetPath;
AppSettings.WriteInt(asDataFontSize, NewFontSize);
ApplyFontToGrids;
end else if ssAlt in Shift then begin
end else if ssShift in Shift then begin
// Horizontal scrolling with Alt+Mousewheel
VT.OffsetX := VT.OffsetX + WheelDelta;
Handled := True;