<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 22.12.2010, at 02:31, Casey Ransberger wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">So I have been hacking a bit in iOS land. I looked at Bert's Etoys example and ultimately settled on a similar approach to making the keyboard visible. Everything is more or less golden, except that the return key doesn't do anything. Smalltalk methods look funny all on one line:/<div>
<br></div><div>It's quite likely something I'm doing wrong in Cocoa land, but it occurs to me that the return key might be putting linefeeds into whatever text input buffer is there, and that might explain why Squeak isn't advancing to the next line.</div>
<div><br></div><div>Is this a known issue?<br><div><br>-- <br>Casey Ransberger<br>
</div></div>
</blockquote></div><div><br></div><div>This was in one of the patches I sent to John a couple months ago:</div><div><br></div><div><div>Index: platforms/Mac OSObjC/vm/iPhone/Classes/SqueakUIView.m</div><div>===================================================================</div><div>--- platforms/Mac OSObjC/vm/iPhone/Classes/SqueakUIView.m<span class="Apple-tab-span" style="white-space:pre">        </span>(revision 196)</div><div>+++ platforms/Mac OSObjC/vm/iPhone/Classes/SqueakUIView.m<span class="Apple-tab-span" style="white-space:pre">        </span>(working copy)</div><div>@@ -231,6 +233,10 @@</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">                                        </span> &nbsp; options: 0 range: picker remainingRange: NULL];</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">                </span>[lookupString release];</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">                </span></div><div>+<span class="Apple-tab-span" style="white-space:pre">                </span>// LF -&gt; CR</div><div>+<span class="Apple-tab-span" style="white-space:pre">                </span>if (macRomanCharacter == 10)</div><div>+<span class="Apple-tab-span" style="white-space:pre">                        </span>macRomanCharacter = 13;</div><div>+<span class="Apple-tab-span" style="white-space:pre">                </span></div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">                </span>evt.pressCode = EventKeyDown;</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">                </span>BOOL isUppercase = [[NSCharacterSet uppercaseLetterCharacterSet] characterIsMember: unicode];</div><div>&nbsp;<span class="Apple-tab-span" style="white-space:pre">                </span>evt.modifiers = isUppercase ? ShiftKeyBit : 0;</div></div><div><br></div><br><div>
<div style="font-family: Helvetica; font-size: 12px; ">- Bert -</div><span class="Apple-style-span" style="font-size: 12px; "><br class="Apple-interchange-newline"></span>
</div>
<br></body></html>