Fix renaming selection of text when renaming in Firefox