mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 15:39:49 +02:00
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:
parent
0922a747d7
commit
bfc786c46c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user