mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 11:19:26 +02:00
LCL, grids, fix check for focused
git-svn-id: trunk@42985 -
This commit is contained in:
parent
7f4caeb374
commit
c9715d9f6b
@ -28,7 +28,7 @@ unit Grids;
|
||||
|
||||
{$mode objfpc}{$H+}
|
||||
{$define NewCols}
|
||||
|
||||
{$define DbgGrid}
|
||||
interface
|
||||
|
||||
uses
|
||||
@ -5966,7 +5966,7 @@ begin
|
||||
DebugLn('Mouse was in ', dbgs(FGCache.HotGridZone));
|
||||
{$ENDIF}
|
||||
|
||||
WasFocused := Focused;
|
||||
WasFocused := Focused or EditorMode;
|
||||
if not WasFocused then begin
|
||||
SetFocus;
|
||||
if not focused then begin
|
||||
|
Loading…
Reference in New Issue
Block a user