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.