mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 06:38:06 +02:00
Designer: Create a default event for a component when [Ctrl+Enter] is pressed
This commit is contained in:
parent
eba189ea8c
commit
47e4c54d48
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user