Fixed a bug where the spreadsheet was holding focus so sending a message doesn't work.

Issue: #440