Widget: Support events with dashes and colons

Fixes #9708
Closes gh-1159