<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font size="4">Hi, <br>
</font></p>
<p><font size="4">In the Morph>>keyStroke> method I don't
understand the message #focusKeyboardFor: </font></p>
<p><font size="4">What is it supposed to do. The related method
returns a boolean, but in which circumstance is a bit obscure
when reading at the message name.<br>
</font></p>
<p><font size="4">Thanks</font></p>
<p><font size="4">Hilaire<br>
</font></p>
<p><font size="4"><br>
</font></p>
<p><font size="4">keyStroke: aKeyboardEvent<br>
"Handle a keystroke event.<br>
Subclasses should call super, and check if the event was
handled."<br>
<br>
(self focusKeyboardFor: aKeyboardEvent)<br>
ifTrue: [ ^ aKeyboardEvent wasHandled: true ].<br>
<br>
aKeyboardEvent anyModifierKeyPressed ifTrue: [<br>
(self keyboardShortcut: aKeyboardEvent)<br>
ifTrue: [ ^ aKeyboardEvent wasHandled: true ]].</font><br>
</p>
<pre class="moz-signature" cols="72">--
<a class="moz-txt-link-freetext" href="http://mamot.fr/@drgeo">http://mamot.fr/@drgeo</a></pre>
</body>
</html>