LCL-CustomDrawn: Finally finishes fixing suppoty to navigate controls with tab

git-svn-id: trunk@39493 -
This commit is contained in:
sekelsenmat 2012-12-09 18:55:55 +00:00
parent 0366bfa300
commit fb7212f505
2 changed files with 5 additions and 2 deletions

View File

@ -59,6 +59,7 @@ begin
// Also mark in the window information the focus change
TCDForm(lForm.Handle).FocusedControl := ALCLControl;
TCDForm(lForm.Handle).FocusedIntfControl := FocusedIntfControl;
// Verify if the virtual keyboard needs to be shown/hidden
// Only show if there is no hardware keyboard, but hide always in case

View File

@ -2852,8 +2852,10 @@ end;*)
function TCDWidgetSet.GetFocus: HWND;
begin
Result := 0;
if FocusedIntfControl <> nil then Result := FocusedIntfControl.Handle
else if FocusedControl <> nil then Result := FocusedControl.Handle;
// Don't return the intfcontrol, we try to pretend it doesn't exist
{if FocusedIntfControl <> nil then Result := FocusedIntfControl.Handle
else}
if FocusedControl <> nil then Result := FocusedControl.Handle;
end;
(*function TQtWidgetSet.GetKeyState(nVirtKey: Integer): Smallint;