mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-01 12:52:33 +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);
|
||||
begin
|
||||
if Key = char(VK_RETURN) then
|
||||
if (Key = char(VK_RETURN)) and (TreeView.Selected<>nil) then
|
||||
EditCommandMapping(TreeView.Selected);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user