Bug fix to prevent ctrl+x deleting content in rich text box