[foldcode addon] preventDefault clicks on widgets

So that the click doesn't kill editor focus.

Closes #2505