Added support for "whenClicked" blockspec