mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 06:09:15 +02:00
LCL: FindNextControl returns first control, if the current control is not in the taborder list (fixes #9390) from Gerard Visent
git-svn-id: trunk@11765 -
This commit is contained in:
parent
061c5c6ee3
commit
fd3816388c
@ -2800,7 +2800,12 @@ begin
|
||||
//end;
|
||||
If List.Count > 0 then begin
|
||||
J := List.IndexOf(CurrentControl);
|
||||
if J<0 then exit;
|
||||
if J<0 then begin
|
||||
if GoForward then
|
||||
J := List.Count - 1
|
||||
else
|
||||
J := 0;
|
||||
end;
|
||||
//DebugLn('TWinControl.FindNextControl A ',DbgSName(CurrentControl),' ',dbgs(J),
|
||||
// ' GoForward='+dbgs(GoForward)+' CheckTabStop='+dbgs(CheckTabStop)+' CheckParent='+dbgs(CheckParent));
|
||||
I := J;
|
||||
|
Loading…
Reference in New Issue
Block a user