Skip to content

Commit

Permalink
Add "Edit/Copy comment" into Game menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiraoka committed Mar 9, 2021
1 parent 145e18d commit 9b53d93
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/main/java/featurecat/lizzie/gui/Menu.java
Original file line number Diff line number Diff line change
Expand Up @@ -1162,6 +1162,29 @@ public void actionPerformed(ActionEvent e) {
}
});
gameMenu.add(pass);

gameMenu.addSeparator();

final JMenuItem editComment = new JMenuItem("Edit comment");
editComment.addActionListener(
new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
Lizzie.frame.editComment();
}
});
gameMenu.add(editComment);

final JMenuItem copyComment = new JMenuItem("Copy comment(Ctrl+Shift+C)");
copyComment.addActionListener(
new ActionListener() {
@Override
public void actionPerformed(ActionEvent e) {
Lizzie.frame.copyCommentToClipboard();
}
});
gameMenu.add(copyComment);

gameMenu.addSeparator();

final JMenuItem clearBoard = new JMenuItem(resourceBundle.getString("Menu.game.clearBoard"));
Expand Down

0 comments on commit 9b53d93

Please sign in to comment.