mirror of
https://github.com/arduino/Arduino.git
synced 2025-03-13 10:29:35 +01:00
Swap "Copy for Forum" and "Copy as HTML" actions
Fixes #5401 The bug was introduced by 982d4f3f, when DiscourseFormat(Editor, bool html) declarations were swapped. The contextual/right click menu in EditorTab already behaves correctly.
This commit is contained in:
parent
6dacb6b0bf
commit
55b55b29e6
@ -1306,7 +1306,7 @@ public class Editor extends JFrame implements RunnerListener {
|
||||
JMenuItem copyForumItem = newJMenuItemShift(tr("Copy for Forum"), 'C');
|
||||
copyForumItem.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
getCurrentTab().handleHTMLCopy();
|
||||
getCurrentTab().handleDiscourseCopy();
|
||||
}
|
||||
});
|
||||
menu.add(copyForumItem);
|
||||
@ -1314,7 +1314,7 @@ public class Editor extends JFrame implements RunnerListener {
|
||||
JMenuItem copyHTMLItem = newJMenuItemAlt(tr("Copy as HTML"), 'C');
|
||||
copyHTMLItem.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
getCurrentTab().handleDiscourseCopy();
|
||||
getCurrentTab().handleHTMLCopy();
|
||||
}
|
||||
});
|
||||
menu.add(copyHTMLItem);
|
||||
|
Loading…
x
Reference in New Issue
Block a user