* Add workaround for bug in gtk2 that lead to focus being lost after arrow key is pressed

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@428 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
blikblum
2008-04-18 00:50:13 +00:00
parent 2b2f2a581a
commit f1a883be87

View File

@ -15407,6 +15407,11 @@ begin
// If a repaint is needed then paint the entire tree because of the ClearSelection call,
if NeedInvalidate then
Invalidate;
{$ifdef LCLGtk2}
//workaround for changing focus bug
if CharCode <> VK_TAB then
CharCode := 0;
{$endif}
end
else
begin