[BUG] new paragraph wasn't initialized correctly ([et] [sm])

Hernan Tylim htylim at yahoo.com.ar
Sun Apr 11 23:51:21 UTC 2004


Hi, 

Please note that even though the symptom here was text cursor
invisibility it fixes a bug different that the one addressed on the
'[BUG] Hidden text cursor' thread.

>From the preamble: 
'From Squeak3.7beta of ''1 April 2004'' [latest update: #5878] on 11
April 2004 at 8:43:55 pm'!
"Change Set:		ParagraphFocusInit-hpt
Date:			11 April 2004
Author:			Hernan Tylim

On TextMorphSelectionFix-rr which is on the image since update 5849 the
textmorph selection gets colored differently if it has keyboard focus or
not. 

When the TextMorph creates a NewParagraph instance it wasn't setting the
focused property (see senders of NewParagraph>>focused) so new paragraph
were always colored as it wasn't focused even if it had focus.

To try this bug write on any browser or workspace and hit cmd+l
(cancel). When you do that the textmorph will show the paragraph
previous your writing unfocused but it has keyboard focus.

This change set just adds the following line to the end of
TextMorph>>paragraph:

paragraph focused: (self currentHand keyboardFocus == self)'

Saludos,
Hernán 





More information about the Squeak-dev mailing list