mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 07:30:22 +02:00
IDE: Keep the selection of key in KeyMapping window. From Ondrej Pokorny.
git-svn-id: trunk@50035 -
This commit is contained in:
parent
28eba57562
commit
5093f81168
@ -17,6 +17,7 @@ object EditorKeymappingOptionsFrame: TEditorKeymappingOptionsFrame
|
||||
Height = 23
|
||||
Top = 6
|
||||
Width = 305
|
||||
OnAfterFilter = FilterEditAfterFilter
|
||||
OnFilterItem = FilterEditFilterItem
|
||||
ButtonWidth = 23
|
||||
NumGlyphs = 1
|
||||
|
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user