<div dir="ltr">The issue I've run into with TextModelMorph is that it seems to be for multi-line input.<div>Is there a way to configure it to only allow a single line of input like TextEntryMorph does?</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Aug 22, 2024 at 3:17 AM Hilaire Fernandes via Cuis-dev <<a href="mailto:cuis-dev@lists.cuis.st">cuis-dev@lists.cuis.st</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><u></u>
<div 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>Le 22/08/2024 à 03:08, Mark Volkmann
via Cuis-dev a écrit :<br>
</div>
<blockquote type="cite">
<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 cols="72">--
GNU Dr. Geo
<a href="http://gnu.org/s/dr-geo/" target="_blank">http://gnu.org/s/dr-geo/</a>
<a href="http://gnu-drgeo.blogspot.com/" target="_blank">http://gnu-drgeo.blogspot.com/</a></pre>
</div>
-- <br>
Cuis-dev mailing list<br>
<a href="mailto:Cuis-dev@lists.cuis.st" target="_blank">Cuis-dev@lists.cuis.st</a><br>
<a href="https://lists.cuis.st/mailman/listinfo/cuis-dev" rel="noreferrer" target="_blank">https://lists.cuis.st/mailman/listinfo/cuis-dev</a><br>
</blockquote></div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div><font face="arial, helvetica, sans-serif">R. Mark Volkmann</font></div><div><span style="font-size:12.8px"><font face="arial, helvetica, sans-serif">Object Computing, Inc.</font></span></div></div></div></div></div></div></div></div>