Steps to reproduce: 1. Put keyboard focus on the editor. 2. Switch to another program. 3. Switch back to sqlite-gui. 4. The focus is lost: cannot continue entering text in the editor unless the focus is manually set.