ide: don't eat any keys when object inspector editor is dropped down (issue #0011031)

git-svn-id: trunk@14723 -
This commit is contained in:
paul 2008-04-02 02:21:29 +00:00
parent d2b0a4c27d
commit ab35d6d7d9

View File

@ -1916,19 +1916,14 @@ begin
//writeln('TOICustomPropertyGrid.HandleStandardKeys ',Key); //writeln('TOICustomPropertyGrid.HandleStandardKeys ',Key);
if Shift = [] then if Shift = [] then
begin begin
Handled:=true; Handled := not IsCurrentEditDroppedDown;
if Handled then
case Key of case Key of
VK_UP: VK_UP:
if IsCurrentEditDroppedDown then
Handled := False
else
if (ItemIndex > 0) then if (ItemIndex > 0) then
SetItemIndexAndFocus(ItemIndex - 1); SetItemIndexAndFocus(ItemIndex - 1);
VK_DOWN: VK_DOWN:
if IsCurrentEditDroppedDown then
Handled := False
else
if (ItemIndex < FRows.Count - 1) then if (ItemIndex < FRows.Count - 1) then
SetItemIndexAndFocus(ItemIndex + 1); SetItemIndexAndFocus(ItemIndex + 1);