LCL, grids, fix check for focused

git-svn-id: trunk@42985 -
This commit is contained in:
jesus 2013-09-27 12:59:45 +00:00
parent 7f4caeb374
commit c9715d9f6b

View File

@ -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