FIX: Hitting Tab key when Quick Preview open applies focus both file panes (fixes #2079)

This commit is contained in:
Alexander Koblov 2025-01-12 14:42:33 +03:00
commit e1fbd5c089

View file

@ -4253,11 +4253,14 @@ begin
VK_TAB:
begin
// Select opposite panel.
case PanelSelected of
fpLeft: SetActiveFrame(fpRight);
fpRight: SetActiveFrame(fpLeft);
else SetActiveFrame(fpLeft);
if (QuickViewPanel = nil) then
begin
// Select opposite panel.
case PanelSelected of
fpLeft: SetActiveFrame(fpRight);
fpRight: SetActiveFrame(fpLeft);
else SetActiveFrame(fpLeft);
end;
end;
Key := 0;
end;