GTK3: Fixed handling widget focus when csNoFocus is used.

Closes: #40037.

When the widget has `csNoFocus` set, we don't set focus on it.
This commit is contained in:
Abou Al Montacir 2023-11-25 12:00:18 +01:00
parent 0922a747d7
commit bfc786c46c

View File

@ -1288,7 +1288,9 @@ begin
if TGtk3ComboBox(Data).DroppedDown then
exit;
end;
TGtk3Widget(Data).GtkEventFocus(Widget, Event);
if not (csNoFocus in TCustomForm(TGtk3Widget(Data).LCLObject).ControlStyle) then begin
TGtk3Widget(Data).GtkEventFocus(Widget, Event);
end;
end;
GDK_CONFIGURE:
begin