mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-15 19:02:39 +02:00
gtk2: do not automatically grab focus when tab clicked. issue #32237
git-svn-id: trunk@55726 -
This commit is contained in:
parent
acedbd74f5
commit
0c1d8a9bb0
@ -2179,7 +2179,12 @@ begin
|
||||
if Assigned(AClip) then
|
||||
gtk_clipboard_set_text(AClip, PgChar(AClipText), length(AClipText));
|
||||
end else
|
||||
LCLIntf.SetFocus(AWinControl.Handle);
|
||||
begin
|
||||
if (AWinControl is TCustomTabControl) then
|
||||
// do not grab focus. issue #32237
|
||||
else
|
||||
LCLIntf.SetFocus(AWinControl.Handle);
|
||||
end;
|
||||
end;
|
||||
|
||||
// send the message directly to the LCL
|
||||
|
Loading…
Reference in New Issue
Block a user