ListFilterEdit: Improved keydown handler. Noted by Flávio Etrusco.

git-svn-id: trunk@31692 -
This commit is contained in:
juha 2011-07-14 06:42:36 +00:00
parent ee4a3f95f1
commit 56e3778b07

View File

@ -652,11 +652,15 @@ end;
procedure TListFilterEdit.KeyDown(var Key: Word; Shift: TShiftState); procedure TListFilterEdit.KeyDown(var Key: Word; Shift: TShiftState);
begin begin
case Key of if ((Key=VK_UP) or (Key=VK_DOWN)) and (Shift=[]) then
VK_UP: fViewControlWrapper.MovePrev; begin
VK_DOWN: fViewControlWrapper.MoveNext; case Key of
else inherited KeyDown(Key, Shift); VK_UP: fViewControlWrapper.MovePrev;
end; VK_DOWN: fViewControlWrapper.MoveNext;
end;
Key:=0;
end
else inherited KeyDown(Key, Shift);
end; end;
function TListFilterEdit.GetDefaultGlyph: TBitmap; function TListFilterEdit.GetDefaultGlyph: TBitmap;