Fix canvas focus stealing from text boxes

Fixes issue #71