File tree Expand file tree Collapse file tree
Core/Sources/SuggestionWidget/SuggestionPanelContent Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -144,6 +144,12 @@ struct ChatPanelMessages: View {
144144 . scaleEffect ( x: - 1 , y: 1 , anchor: . center)
145145 . shadow ( color: . black. opacity ( 0.1 ) , radius: 2 )
146146 . frame ( maxWidth: . infinity, alignment: . trailing)
147+ . contextMenu {
148+ Button ( " Copy " ) {
149+ NSPasteboard . general. clearContents ( )
150+ NSPasteboard . general. setString ( text, forType: . string)
151+ }
152+ }
147153 } else {
148154 Markdown ( text)
149155 . textSelection ( . enabled)
@@ -169,6 +175,12 @@ struct ChatPanelMessages: View {
169175 . scaleEffect ( x: - 1 , y: 1 , anchor: . center)
170176 . shadow ( color: . black. opacity ( 0.1 ) , radius: 2 )
171177 . frame ( maxWidth: . infinity, alignment: . leading)
178+ . contextMenu {
179+ Button ( " Copy " ) {
180+ NSPasteboard . general. clearContents ( )
181+ NSPasteboard . general. setString ( text, forType: . string)
182+ }
183+ }
172184 }
173185 }
174186
You can’t perform that action at this time.
0 commit comments