Designer: Create a default event for a component when [Ctrl+Enter] is pressed

This commit is contained in:
n7800 2024-08-21 04:02:18 +05:00 committed by Juha
parent eba189ea8c
commit 47e4c54d48

View File

@ -2844,7 +2844,14 @@ begin
VK_RETURN:
if Shift = [] then
DoShowObjectInspector
else
else if Shift = [ssCtrl] then
begin
// ToDo: create an event for each selected control (currently
// GetComponentEditorForSelection returns nil if more than one is selected)
PopupMenuComponentEditor := GetComponentEditorForSelection;
if assigned(PopupMenuComponentEditor) then
PopupMenuComponentEditor.Edit;
end else
Handled := False;
VK_A: