Skip to content

Commit

Permalink
[feenkcom/gtoolkit#4124] spawn a magritte definition on alt+click on …
Browse files Browse the repository at this point in the history
…a label
  • Loading branch information
syrel committed Oct 25, 2024
1 parent 353d78b commit a35c5e4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/GToolkit4Magritte-Core/GtMagritteBuilderUtility.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,13 @@ GtMagritteBuilderUtility class >> newFieldLabelWithSpace: aSpaceNumber using: aD
right: (aSpaceNumber ifNil: [ self defaultSpaceNumber ])
bottom: (aSpaceNumber ifNil: [ self defaultSpaceNumber ])
left: 0);
constraintsDo: [ :c | c grid vertical alignTop ]
constraintsDo: [ :c | c grid vertical alignTop ];
when: BlClickEvent
do: [ :anEvent |
anEvent modifiers isAlt
ifTrue: [
anEvent consumed: true.
anEvent target phlow spawnObject: aDescription ] ]
]

{ #category : #'api - ui' }
Expand Down

0 comments on commit a35c5e4

Please sign in to comment.