PluggalbeTextMorph eats cr

Ned Konz ned at bike-nomad.com
Sat Sep 22 01:59:30 UTC 2001


On Friday 21 September 2001 04:59 pm, Ken G. Brown wrote:
> Further:
> If I enter a space into the pane, then delete it, then do the cr on the
> empty window, it hits the halt in my sendTextToControl: at which time I
> could do what I need to do.
> It seems to have something to do with whether there are outstanding edits
> or not on the empty pane.

That's because you told it that CR was the same as accept. Which doesn't do 
anything unless the pane was dirty. You may want to do something different.

Like look at AcceptableCleanTextMorph.

Or set the #alwaysAccept property on your PluggableTextMorph.

-- 
Ned Konz
currently: Stanwood, WA
email:     ned at bike-nomad.com
homepage:  http://bike-nomad.com




More information about the Squeak-dev mailing list