<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font size="4">What about listening to key stroke event on
TextModelMorph. TextEntryMorph is a bit limited in its features.
Code example from DrGeo:<br>
</font></p>
<p><font size="4"> tMorph scroller <br>
setProperty: #keyStroke: <br>
toValue: [:event | <br>
tMorph scroller acceptContents.<br>
self changed: #isReadyToApply].<br>
</font></p>
<div class="moz-cite-prefix">Le 22/08/2024 à 03:08, Mark Volkmann
via Cuis-dev a écrit :<br>
</div>
<blockquote type="cite"
cite="mid:CAFfRWnUXqx7+gDxrnjTj4wO9zvEAx8CJ61U69GUXcVp=C8+jCA@mail.gmail.com">
<div>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 <font
face="monospace">escapeAction</font> and these instance
methods:<br>
</div>
</blockquote>
<pre class="moz-signature" cols="72">--
GNU Dr. Geo
<a class="moz-txt-link-freetext" href="http://gnu.org/s/dr-geo/">http://gnu.org/s/dr-geo/</a>
<a class="moz-txt-link-freetext" href="http://gnu-drgeo.blogspot.com/">http://gnu-drgeo.blogspot.com/</a></pre>
</body>
</html>