mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-01 23:00:27 +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:
|
VK_RETURN:
|
||||||
if Shift = [] then
|
if Shift = [] then
|
||||||
DoShowObjectInspector
|
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;
|
Handled := False;
|
||||||
|
|
||||||
VK_A:
|
VK_A:
|
||||||
|
Loading…
Reference in New Issue
Block a user