mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Support horizontal scrolling in grids with Alt+Mousewheel. Closes #142.
This commit is contained in:
@ -8726,6 +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 Assigned(VT.FocusedNode) then begin
|
||||
if WheelDelta > 0 then
|
||||
@ -8747,6 +8748,10 @@ begin
|
||||
AppSettings.ResetPath;
|
||||
AppSettings.WriteInt(asDataFontSize, NewFontSize);
|
||||
ApplyFontToGrids;
|
||||
end else if ssAlt in Shift then begin
|
||||
// Horizontal scrolling with Alt+Mousewheel
|
||||
VT.OffsetX := VT.OffsetX + WheelDelta;
|
||||
Handled := True;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Reference in New Issue
Block a user