IDE: Keep the selection of key in KeyMapping window. From Ondrej Pokorny.

git-svn-id: trunk@50035 -
This commit is contained in:
juha 2015-10-12 08:32:57 +00:00
parent 28eba57562
commit 5093f81168
2 changed files with 7 additions and 0 deletions

View File

@ -17,6 +17,7 @@ object EditorKeymappingOptionsFrame: TEditorKeymappingOptionsFrame
Height = 23
Top = 6
Width = 305
OnAfterFilter = FilterEditAfterFilter
OnFilterItem = FilterEditFilterItem
ButtonWidth = 23
NumGlyphs = 1

View File

@ -59,6 +59,7 @@ type
procedure EditMenuItemClick(Sender: TObject);
procedure ChooseSchemeButtonClick(Sender: TObject);
procedure ClearButtonClick(Sender: TObject);
procedure FilterEditAfterFilter(Sender: TObject);
function FilterEditFilterItem(Item: TObject; out Done: Boolean): Boolean;
procedure FilterEditKeyPress(Sender: TObject; var {%H-}Key: char);
procedure FindKeyButtonClick(Sender: TObject);
@ -473,6 +474,11 @@ begin
end;
end;
procedure TEditorKeymappingOptionsFrame.FilterEditAfterFilter(Sender: TObject);
begin
TreeView.MakeSelectionVisible;
end;
function TEditorKeymappingOptionsFrame.KeyMappingRelationToCaption(Index: Integer): String;
begin
Result := KeyMappingRelationToCaption(FEditingKeyMap.Relations[Index]);