diff --git a/lcl/interfaces/gtk2/gtk2proc.inc b/lcl/interfaces/gtk2/gtk2proc.inc index 2591f144cb..951a96081b 100644 --- a/lcl/interfaces/gtk2/gtk2proc.inc +++ b/lcl/interfaces/gtk2/gtk2proc.inc @@ -2222,6 +2222,7 @@ begin TargetObj := AData; FocusedWinControl := nil; FocusedWidget := nil; + LCLObject := nil; // The gtk sends keys first to the gtkwindow and then to the focused control. // The LCL expects only once to the focused control.