Send cancel on click outside modal

Unless enforceModality is set. This makes the behavior consistent with hitting esc.

@azirbel @Dylnuge 

CC @tammomueller