mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-31 04:52:35 +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));
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user