From f1a883be87dc688ff50dcff6d05113e0e6f68550 Mon Sep 17 00:00:00 2001 From: blikblum Date: Fri, 18 Apr 2008 00:50:13 +0000 Subject: [PATCH] * 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 --- components/virtualtreeview-unstable/VirtualTrees.pas | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/virtualtreeview-unstable/VirtualTrees.pas b/components/virtualtreeview-unstable/VirtualTrees.pas index b6e9d62ad..4ca56362b 100644 --- a/components/virtualtreeview-unstable/VirtualTrees.pas +++ b/components/virtualtreeview-unstable/VirtualTrees.pas @@ -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