Skip to content

Commit 55b55b2

Browse files
committed
Swap "Copy for Forum" and "Copy as HTML" actions
Fixes #5401 The bug was introduced by 982d4f3, when DiscourseFormat(Editor, bool html) declarations were swapped. The contextual/right click menu in EditorTab already behaves correctly.
1 parent 6dacb6b commit 55b55b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/src/processing/app/Editor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1306,15 +1306,15 @@ public void actionPerformed(ActionEvent e) {
13061306
JMenuItem copyForumItem = newJMenuItemShift(tr("Copy for Forum"), 'C');
13071307
copyForumItem.addActionListener(new ActionListener() {
13081308
public void actionPerformed(ActionEvent e) {
1309-
getCurrentTab().handleHTMLCopy();
1309+
getCurrentTab().handleDiscourseCopy();
13101310
}
13111311
});
13121312
menu.add(copyForumItem);
13131313

13141314
JMenuItem copyHTMLItem = newJMenuItemAlt(tr("Copy as HTML"), 'C');
13151315
copyHTMLItem.addActionListener(new ActionListener() {
13161316
public void actionPerformed(ActionEvent e) {
1317-
getCurrentTab().handleDiscourseCopy();
1317+
getCurrentTab().handleHTMLCopy();
13181318
}
13191319
});
13201320
menu.add(copyHTMLItem);

0 commit comments

Comments
 (0)