mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-10 00:16:42 +02:00
IDE: editor keymap return key: fixed crash
git-svn-id: trunk@38693 -
This commit is contained in:
parent
c92c11608b
commit
6a15305fe4
@ -286,7 +286,7 @@ end;
|
|||||||
|
|
||||||
procedure TEditorKeymappingOptionsFrame.TreeViewKeyPress(Sender: TObject; var Key: char);
|
procedure TEditorKeymappingOptionsFrame.TreeViewKeyPress(Sender: TObject; var Key: char);
|
||||||
begin
|
begin
|
||||||
if Key = char(VK_RETURN) then
|
if (Key = char(VK_RETURN)) and (TreeView.Selected<>nil) then
|
||||||
EditCommandMapping(TreeView.Selected);
|
EditCommandMapping(TreeView.Selected);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user