<body><div id="__MailbirdStyleContent" style="font-size: 10pt;font-family: Arial;color: #000000;text-align: left" dir="ltr">
                                        Hi Eduardo --<div><br></div><div>Maybe take a look at</div><div>   UserInputEventTests >> #keystroke:at:</div><div><br></div><div>Best,</div><div>Marcel</div><div class="mb_sig"></div><blockquote class='history_container' type='cite' style='border-left-style:solid;border-width:1px; margin-top:20px; margin-left:0px;padding-left:10px;'>
                        <p style='color: #AAAAAA; margin-top: 10px;'>Am 03.02.2023 15:24:33 schrieb Eduardo Ochs <eduardoochs@gmail.com>:</p><div style='font-family:Arial,Helvetica,sans-serif'>Hi list,<br><br>suppose that I am exploring a morph and want to use the debugger to<br>understand what happens when I send a CR to one of its submorphs. I<br>guess that a good way to do that would be to run a one-liner like this<br>in the explorer window,<br><br>  42 halt. (self submorphs at: 1) sendKeyboardEvent: CR.<br><br>but this is just pseudo-code, of course... I've spent some hours on<br>the swiki and browsing the source code of methods and classes that<br>looked promising, like these ones,<br><br>  EventSensor>>#processKeyboardEvent:<br>  HandMorph>>#generateKeyboardEvent:<br>  HandMorph>>#sendKeyboardEvent:<br>  KeyboardEvent<br><br>but I couldn't find any code that generates a keyboard event itself<br>and sends it to a morph... I know how to add a breakpoint to a<br>keyDown: method, but debugging that breakpoint would start the<br>debugger in a place in which a keyboard event had already been<br>generated, and is being processed - and I'm looking for a way to do<br>something that is several steps before that (break)point.<br><br>Any hints? Translations of the "sendKeyboardEvent: CR" above to real<br>code - either low-level or high-level - would be ideal, but links<br>can help me a lot too, of course...<br><br>  Thanks in advance!<br>  Eduardo Ochs<br>    http://anggtwu.net/eev-squeak.html<br><br></div></blockquote>
                                        </div></body>