Fix a performance regression when deleting large amounts of text

Having the event manager in focus during deletion causes text removal to
be approximately 3x slower.
Merge pull request #309 from peitschie/perf-regression

Fix a performance regression when deleting large amounts of text