We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reproduce with:
BlElement new addEventHandlerOn: BlClickEvent, BlMouseDownEvent, BlMouseUpEvent do: [ ].
to get a "Instance of AnnouncementSet did not understand #enableIn:"
In Pharo12.
The text was updated successfully, but these errors were encountered:
For the record, I did a first try and failed to fix it. I share the code below.
I created this test in BlEventTest:
BlEventTest
testAnnouncementSet | element events | events := OrderedCollection new. element := BlElement new. element addEventHandlerOn: BlClickEvent, BlMouseMoveEvent do: [ :anEvent | events add: anEvent class ]. BlSpace simulateMouseMoveInside: element; simulateClickOn: element button: BlMouseButton primary; simulateMouseDownOn: element; "should be ignored" simulateClickOn: element button: BlMouseButton secondary. self assert: events asArray equals: { BlMouseMoveEvent. BlClickEvent. BlClickEvent }
and created this extension in AnnouncementSet:
AnnouncementSet
enableIn: aBlElementEventDispatcher ^ self do: [ :each | each enableIn: aBlElementEventDispatcher ]
Sorry, something went wrong.
No branches or pull requests
Reproduce with:
to get a "Instance of AnnouncementSet did not understand #enableIn:"
In Pharo12.
The text was updated successfully, but these errors were encountered: