LCL: GTK2: Don't grab focus for TPanel on mouse messages. Issue #32515

git-svn-id: trunk@56048 -
This commit is contained in:
michl 2017-10-13 13:58:28 +00:00
parent c6219aa9d6
commit 54536b833a

View File

@ -2184,8 +2184,9 @@ begin
gtk_clipboard_set_text(AClip, PgChar(AClipText), length(AClipText));
end else
begin
if (AWinControl is TCustomTabControl) then
// do not grab focus. issue #32237
if (AWinControl is TCustomTabControl)
or (AWinControl is TCustomPanel) then
// do not grab focus. issue #32237, #32515
else
LCLIntf.SetFocus(AWinControl.Handle);
end;