copy / paste text locally, for platforms that do not support it