[squeak-dev] Event handling challenges
K K Subbu
kksubbu.ml at gmail.com
Mon Jun 15 15:30:10 UTC 2020
On 15/06/20 7:17 pm, Trygve Reenskaug wrote:
> Not quite. Joe now throws the the strange Morph back to where it came
> from instead of ignoring it.
This will happen if dropEnabled is false.
> I need Joe to accept all TexMorphXX but ignore the rest
I think this is handled by wantsDroppedMorph... method.
PasteUpMorphXX>>wantsDroppedMorph: aMorph event: evt
(aMorph isKindOf: TextMorphXX) ifFalse: [^false]
^super wantsDroppedMorph: aMorph event: evt
HTH .. Subbu
More information about the Squeak-dev
mailing list
|