mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user