The Trunk: Morphic-mt.2219.mcz
[email protected] Mon, 27 Jul 2026 06:55:49 0000
| Newsgroups | gmane.comp.lang.smalltalk.squeak.general |
|---|---|
| Message-ID | <[email protected]> |
Marcel Taeumel uploaded a new version of Morphic to project The Trunk: http://source.squeak.org/trunk/Morphic-mt.2219.mcz ==================== Summary ==================== Name: Morphic-mt.2219 Author: mt Time: 27 July 2026, 8:55:46.748417 am UUID: 1beafc23-c807-a045-92da-5b30fbb9656a Ancestors: Morphic-ct.2218, Morphic-ct.2215 In preparation for the Release Notes, merge Morphic-ct.2215 (to complement Collections-ct.1117). Allows text attributes to define menus in relation to the editor/requestor state. =============== Diff against Morphic-ct.2218 =============== Item was changed: ----- Method: TextEditor>>yellowButtonDown: (in category 'events') ----- yellowButtonDown: event "Process a yellow button event. Answer true if the event was handled, false otherwise." + (paragraph attributesAt: event cursorPoint) do:[:attr | + | menu | + menu := (attr respondsTo: #menu:for:in:at:editor:) ifTrue: + [attr menu: MenuMorph new for: (model ifNil: [morph]) in: paragraph at: event position editor: self]. + menu ifNil: [menu := attr menu]. + menu ifNotNil: [ + menu + setInvokingView: ((self morph respondsTo: #editView) ifTrue: [self morph editView] ifFalse: [self morph]); - (paragraph attributesAt: event cursorPoint) do:[:attr| - attr menu ifNotNil:[ - attr menu - setInvokingView: self morph editView; popUpEvent: event in: self morph world. ^true]]. ^false! Squeak-dev mailing list -- [email protected] To unsubscribe send an email to [email protected]