mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-01 13:32:31 +02:00
LCL: GTK2: Don't grab focus for TPanel on mouse messages. Issue #32515
git-svn-id: trunk@56048 -
This commit is contained in:
parent
c6219aa9d6
commit
54536b833a
@ -2184,8 +2184,9 @@ begin
|
|||||||
gtk_clipboard_set_text(AClip, PgChar(AClipText), length(AClipText));
|
gtk_clipboard_set_text(AClip, PgChar(AClipText), length(AClipText));
|
||||||
end else
|
end else
|
||||||
begin
|
begin
|
||||||
if (AWinControl is TCustomTabControl) then
|
if (AWinControl is TCustomTabControl)
|
||||||
// do not grab focus. issue #32237
|
or (AWinControl is TCustomPanel) then
|
||||||
|
// do not grab focus. issue #32237, #32515
|
||||||
else
|
else
|
||||||
LCLIntf.SetFocus(AWinControl.Handle);
|
LCLIntf.SetFocus(AWinControl.Handle);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user