Commit 79a7648a67be6e62f470c97d30dd7256f2e7edea
Merge pull request #445 from ssbc/copy-message-text
add context menu item to copy message textMatt McKegg authored on 3/20/2017, 9:55:07 PM
GitHub committed on 3/20/2017, 9:55:07 PM
Parent: 6f958f93d26d7025af20126a53b945dbca03941a
Parent: 6fd3ee341a376214993d0363c4c72161700b7fbc
Files changed
lib/context-menu-and-spellcheck.js | changed |
lib/context-menu-and-spellcheck.js | ||
---|---|---|
@@ -95,8 +95,16 @@ | ||
95 | 95 … | click: function () { |
96 | 96 … | clipboard.writeText(element.msg.key) |
97 | 97 … | } |
98 | 98 … | })) |
99 … | + if (element.msg.value.content.text) { | |
100 … | + menu.append(new MenuItem({ | |
101 … | + label: 'Copy Message Text', | |
102 … | + click: function () { | |
103 … | + clipboard.writeText(element.msg.value.content.text) | |
104 … | + } | |
105 … | + })) | |
106 … | + } | |
99 | 107 … | } |
100 | 108 … | menu.popup(remote.getCurrentWindow()) |
101 | 109 … | }).catch((err) => { |
102 | 110 … | throw err |
Built with git-ssb-web