Closed
Description
In "Edit" menu, "Cut" and "Copy" options are always enabled regardless if there is or not selected text in textarea.
In fact there's a TODO for that issue:
// TODO "cut" and "copy" should really only be enabled
// if some text is currently selected
JMenuItem cutItem = newJMenuItem(tr("Cut"), 'X');
cutItem.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
handleCut();
}
});
menu.add(cutItem);
JMenuItem copyItem = newJMenuItem(tr("Copy"), 'C');
copyItem.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
textarea.copy();
}
});
menu.add(copyItem);
at processing.app.Editor (1372)
Metadata
Metadata
Assignees
Labels
No labels