IDE: editor keymap return key: fixed crash

git-svn-id: trunk@38693 -
This commit is contained in:
mattias 2012-09-16 17:27:12 +00:00
parent c92c11608b
commit 6a15305fe4

View File

@ -286,7 +286,7 @@ end;
procedure TEditorKeymappingOptionsFrame.TreeViewKeyPress(Sender: TObject; var Key: char);
begin
if Key = char(VK_RETURN) then
if (Key = char(VK_RETURN)) and (TreeView.Selected<>nil) then
EditCommandMapping(TreeView.Selected);
end;