git ssb

10+

Matt McKegg / patchwork



Commit 6fd3ee341a376214993d0363c4c72161700b7fbc

add context menu item to copy message text

Michael Williams committed on 3/20/2017, 10:19:17 AM
Parent: 6f958f93d26d7025af20126a53b945dbca03941a

Files changed

lib/context-menu-and-spellcheck.jschanged
lib/context-menu-and-spellcheck.jsView
@@ -95,8 +95,16 @@
9595 click: function () {
9696 clipboard.writeText(element.msg.key)
9797 }
9898 }))
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 + }
99107 }
100108 menu.popup(remote.getCurrentWindow())
101109 }).catch((err) => {
102110 throw err

Built with git-ssb-web