Added 'delete selected text when typing' option.