Fix expression focus!

Using Jack's idea of listening for mousedown to determine focus.

Test plan:
* click in input, click buttons - focus remains
* click outside both - focus is lost
* click back in, tab to another expression - focus moves to the second
* tab back - focus returns
* click a button - it's inserted and focus remains
* type a few things - this works

Auditors: jack