Commit 6fd3ee341a376214993d0363c4c72161700b7fbc
add context menu item to copy message text
Michael Williams committed on 3/20/2017, 10:19:17 AMParent: 6f958f93d26d7025af20126a53b945dbca03941a
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