Fix bug in previous bug fix: leaving canvas fired mouse down
Autofocus fixed by previous changes