<div><div style="font-size:inherit" dir="auto"><span style="font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline!important;background-color:rgba(0,0,0,0);border-color:rgb(0,0,0);color:rgb(0,0,0)">Ok, but you dont need to send newKeyboardFocus: and releaseKeyboardFocusIf:, I think it </span><span style="font-size:inherit;font-style:normal;font-weight:400;letter-spacing:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;text-decoration:none;float:none;display:inline!important;background-color:rgba(0,0,0,0);border-color:rgb(0,0,0);color:rgb(0,0,0)">would be confusing for someone using this example to learn about Morphic in Cuis. You dont need to do anything special to handle keyboard events and keyboard focus, just implement keyStroke:. </span></div></div><div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Thu, Jun 4, 2026 at 16:19 Hilaire Fernandes <<a href="mailto:hfern@free.fr">hfern@free.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><u></u>
<div text="#000000" bgcolor="#FFFFFF">
<p><font size="4" style="color:rgb(0,0,0)">This issue does not show up in the stock image,
but after an error (debugger) in the morph event loop. </font></p>
<p><font size="4" style="color:rgb(0,0,0)">I observed it again yesterday when running the
game and an error in mouse leave method because of the
deprecated releaseKeyboardFocus:; replaced by </font><font size="4" style="color:rgb(0,0,0)">releaseKeyboardFocusIf:, strange renamed btw.</font></p>
<p><font size="4" style="color:rgb(0,0,0)">I already fixed the game and update the book.</font></p>
<p><font size="4" style="color:rgb(0,0,0)">Thanks</font></p></div><div text="#000000" bgcolor="#FFFFFF">
<pre cols="72" style="font-family:monospace">--
<a href="http://mamot.fr/@drgeo" target="_blank" style="font-family:monospace">http://mamot.fr/@drgeo</a></pre>
</div>
</blockquote></div></div>