<div dir="ltr">Hi OBrien J<div><br></div><div>One way to do this is to install a new interruptWatcher on Sensor.  </div><div><br></div><div>On the class you want to handle the message do something like</div><div><br></div><div>Sensor installInterruptWatcher:[self userInterruptWatcher].<br></div><div><br></div><div><div>Yourclass >> userInterruptWatcher</div><div><span style="white-space:pre">   </span>"Wait for user interrupts and open a notifier on the active process when one occurs."</div><div><span style="white-space:pre">       </span>| interruptSemaphore |</div><div><span style="white-space:pre">        </span>interruptSemaphore := InputSensor interruptSemaphore.</div><div><span style="white-space:pre"> </span>[true] whileTrue: [</div><div><span style="white-space:pre">           </span>interruptSemaphore wait.</div><div><span style="white-space:pre">              </span>self signal: #userInterrupt.</div><div><span style="white-space:pre">  </span>].</div></div><div><br></div><div>Then implement your handler with something like onUserInterrupt to respond to the signal.  Or you could just call a method in your class to handle the interrupt.  </div><div><br></div><div>Hope that helps!</div><div><br></div><div>All the best,</div><div><br></div><div>Ron Teitelbaum </div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Dec 9, 2017 at 12:09 PM, obrienj <span dir="ltr"><<a href="mailto:obrienj@protonmail.com" target="_blank">obrienj@protonmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div> Is there a way to intercept the 'User Interrupt'  window that pops up when the user types the interrupt key and replace it with a customized dialog window? I've used on: do: to intercept Error messages but can't seem to do the same with EventSensor messages.<br></div><div class="m_-4939907134512455323protonmail_signature_block m_-4939907134512455323protonmail_signature_block-empty"><div class="m_-4939907134512455323protonmail_signature_block-user m_-4939907134512455323protonmail_signature_block-empty"><div><br></div></div><div class="m_-4939907134512455323protonmail_signature_block-proton m_-4939907134512455323protonmail_signature_block-empty"><br></div></div><div><br></div><br>______________________________<wbr>_________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@lists.squeakfoundation.org">Beginners@lists.<wbr>squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/beginners" rel="noreferrer" target="_blank">http://lists.squeakfoundation.<wbr>org/mailman/listinfo/beginners</a><br>
<br></blockquote></div><br></div></div>