fix delete bug - when all text is selected and delete key pressed, don't remove format