[BUG][FIX] pick-up-able UpdatingStringMorph

Bolot Kerimbaev bolot at cc.gatech.edu
Wed Nov 15 18:12:22 UTC 2000


Lex and I just found a little discrepancy in UpdatingStringMorph's
behavior: it cannot be picked up because its #handlesMouseDown:
doesn't check if there is the putSelector. Here's a proposed fix:

handlesMouseDown: evt
    putSelector ifNil: [^false].
    (owner wantsKeyboardFocusFor: self)
        ifTrue:
            [^ self uncoveredAt: evt cursorPoint].
    ^ super handlesMouseDown: evt

(the change is addition of the first line).

Bolot





More information about the Squeak-dev mailing list