https://dpldocs.info/experimental-docs/arsd.minigui.Event.html
Trying to actually compile an example from this page
widget.addEventListener((KeyDownEvent ev) { ... }, /* optional arg */ useCapture );
throws arsd/minigui.d(1416): Error: static assert: "Your handler wasn't usable because it wasn't passed a delegate. Use the delegate keyword at the call site."
Marking lambda as a delegate solves the issue:
widget.addEventListener(delegate(KeyDownEvent ev) { ... }, /* optional arg */ useCapture );
no biggie but it's worth mentioning in the docs.
Also, useCapture isn't documented anywhere
https://dpldocs.info/experimental-docs/arsd.minigui.Event.html
Trying to actually compile an example from this page
widget.addEventListener((KeyDownEvent ev) { ... }, /* optional arg */ useCapture );throws
arsd/minigui.d(1416): Error: static assert: "Your handler wasn't usable because it wasn't passed a delegate. Use the delegate keyword at the call site."Marking lambda as a delegate solves the issue:
no biggie but it's worth mentioning in the docs.
Also,
useCaptureisn't documented anywhere