mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-28 17:29:36 +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,8 +2179,13 @@ begin
|
|||||||
if Assigned(AClip) then
|
if Assigned(AClip) then
|
||||||
gtk_clipboard_set_text(AClip, PgChar(AClipText), length(AClipText));
|
gtk_clipboard_set_text(AClip, PgChar(AClipText), length(AClipText));
|
||||||
end else
|
end else
|
||||||
|
begin
|
||||||
|
if (AWinControl is TCustomTabControl) then
|
||||||
|
// do not grab focus. issue #32237
|
||||||
|
else
|
||||||
LCLIntf.SetFocus(AWinControl.Handle);
|
LCLIntf.SetFocus(AWinControl.Handle);
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
// send the message directly to the LCL
|
// send the message directly to the LCL
|
||||||
NotifyApplicationUserInput(AWinControl, MessI.Msg);
|
NotifyApplicationUserInput(AWinControl, MessI.Msg);
|
||||||
|
Loading…
Reference in New Issue
Block a user