[Cuis-dev] adding functionality to morphs

Hilaire Fernandes hfern at free.fr
Thu Aug 22 01:16:49 PDT 2024


What about listening to key stroke event on TextModelMorph. 
TextEntryMorph is a bit limited in its features. Code example from DrGeo:

     tMorph scroller
         setProperty: #keyStroke:
         toValue: [:event |
             tMorph scroller acceptContents.
             self changed: #isReadyToApply].

Le 22/08/2024 à 03:08, Mark Volkmann via Cuis-dev a écrit :
> I defined the class TextEntry2Morph which is a subclass of 
> TextEntryMorph because I wanted to register a block to be evaluated 
> every time it has focus and the user presses the escape key. It only 
> adds the instance variable escapeAction and these instance methods:

-- 
GNU Dr. Geo
http://gnu.org/s/dr-geo/
http://gnu-drgeo.blogspot.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20240822/f3d9c1d8/attachment.htm>


More information about the Cuis-dev mailing list