Prevent losing focus of the editor (Fixes 1)
Merge pull request #2 from Blyton/fix/1

Prevent losing focus of the editor (Fixes #1)