Event handling in TextMorphs

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Event handling in TextMorphs

Stephan Eggermont-3
handleInteraction:fromEvent: no longer exists in TextMorph in Pharo 3.0.
Just replacing it by handleInteraction: doesn't do the right thing.
What should I be doing instead?

Stephan

mouseDown: evt
       
        evt yellowButtonPressed ifTrue: [
                ^ self yellowButtonActivity: evt shiftPressed].
       
        self grabKeyboard.
       
        editor ifNotNil: [:e |
                self
                        handleInteraction: [e mouseDown: evt]
                        fromEvent: evt].