mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 16:09:41 +02:00
ListFilterEdit: Improved keydown handler. Noted by Flávio Etrusco.
git-svn-id: trunk@31692 -
This commit is contained in:
parent
ee4a3f95f1
commit
56e3778b07
@ -651,12 +651,16 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TListFilterEdit.KeyDown(var Key: Word; Shift: TShiftState);
|
procedure TListFilterEdit.KeyDown(var Key: Word; Shift: TShiftState);
|
||||||
|
begin
|
||||||
|
if ((Key=VK_UP) or (Key=VK_DOWN)) and (Shift=[]) then
|
||||||
begin
|
begin
|
||||||
case Key of
|
case Key of
|
||||||
VK_UP: fViewControlWrapper.MovePrev;
|
VK_UP: fViewControlWrapper.MovePrev;
|
||||||
VK_DOWN: fViewControlWrapper.MoveNext;
|
VK_DOWN: fViewControlWrapper.MoveNext;
|
||||||
else inherited KeyDown(Key, Shift);
|
|
||||||
end;
|
end;
|
||||||
|
Key:=0;
|
||||||
|
end
|
||||||
|
else inherited KeyDown(Key, Shift);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TListFilterEdit.GetDefaultGlyph: TBitmap;
|
function TListFilterEdit.GetDefaultGlyph: TBitmap;
|
||||||
|
Loading…
Reference in New Issue
Block a user