Add support for copying text to register location.