mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 09:39:19 +01:00
implementation of find/replace, and bug fix for stuck 'open' button
This commit is contained in:
@@ -405,7 +405,23 @@ public class PdeBase extends Frame
|
||||
|
||||
menu.addSeparator();
|
||||
|
||||
item = new MenuItem("Find in Reference");
|
||||
item = new MenuItem("Find...", new MenuShortcut('F'));
|
||||
item.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
editor.find();
|
||||
}
|
||||
});
|
||||
menu.add(item);
|
||||
|
||||
item = new MenuItem("Find Next", new MenuShortcut('G'));
|
||||
item.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
editor.findNext();
|
||||
}
|
||||
});
|
||||
menu.add(item);
|
||||
|
||||
item = new MenuItem("Find in Reference", new MenuShortcut('F', true));
|
||||
item.addActionListener(new ActionListener() {
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
if (editor.textarea.isSelectionActive()) {
|
||||
@@ -502,7 +518,7 @@ public class PdeBase extends Frame
|
||||
|
||||
menu = new Menu("Help");
|
||||
menu.add(new MenuItem("Help"));
|
||||
menu.add(new MenuItem("Reference", new MenuShortcut('F')));
|
||||
menu.add(new MenuItem("Reference"));
|
||||
menu.add(new MenuItem("Proce55ing.net", new MenuShortcut('5')));
|
||||
|
||||
// macosx already has its own about menu
|
||||
|
||||
Reference in New Issue
Block a user