<div dir="ltr">Hillaire, I think you are suggesting that I could do something like this:<div><br></div><div><font face="monospace">te := TextEntryMorph contents: 'change me'.<br>te editor class keyboardActions at: 27 + 1 put: #noop.<br>te setProperty: #keyStroke: toValue: [ :event | event keyValue print ].<br>te openInWorld.</font><br></div><div><br></div><div>But when I move focus to the TextEntryMorph and press the escape key, I get a Debug window for MessageNotUnderstood: "SimpleEditor>>noop". I also tried sending that keyboardActions array element to nil, but that also produced an error.</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 1, 2024 at 3:55 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">You are conflicting with existing shortcuts.
Observe and see how you can find a solution without the need to
subclass.<br>
</font></p>
<img src="cid:ii_191ae6cc4aa4f3a864c1" alt="shortcut" width="1292" height="790">
<div>Le 31/08/2024 à 20:07, Mark Volkmann a
écrit :<br>
</div>
<blockquote type="cite">
<div>Long story short, I don't see a way to change what happens
when the user presses the escape key without creating a subclass
of TextEntryMorph. I'm fine with doing that and already have
that approach working. But I'm curious if there is an approach I
overlooked that would allow me to customize what happens in a
TextEntryMorph when the user presses the escape key (like I can
for when the user presses the return key).</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>