From b9267c521ddffce35932a0cc2e9726d30b80c60d Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 27 Feb 2019 11:26:35 -0500 Subject: [PATCH] copied value to clipboard message --- src/electron/services/electronPlatformUtils.service.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/electron/services/electronPlatformUtils.service.ts b/src/electron/services/electronPlatformUtils.service.ts index ac660afc65..b2b01750e0 100644 --- a/src/electron/services/electronPlatformUtils.service.ts +++ b/src/electron/services/electronPlatformUtils.service.ts @@ -186,7 +186,12 @@ export class ElectronPlatformUtilsService implements PlatformUtilsService { copyToClipboard(text: string, options?: any): void { const type = options ? options.type : null; + const clearMs: number = options && options.clearMs ? options.clearMs : null; clipboard.writeText(text, type); + this.messagingService.send('copiedToClipboard', { + clipboardValue: text, + clearMs: clearMs, + }); } readFromClipboard(options?: any): Promise {