put in comments the association of menus with shortcuts. With the shortcut sometimes it seems to copy stuff twice. Without the shortcut seems to work anyway.
This commit is contained in:
parent
4acb2aa77e
commit
c81241e309
1 changed files with 4 additions and 4 deletions
|
@ -74,15 +74,15 @@ public class WindowScannerFilter implements WindowListener, FocusListener, Actio
|
||||||
|
|
||||||
m = new Menu ("Edit");
|
m = new Menu ("Edit");
|
||||||
mnuCut = new MenuItem("Cut");
|
mnuCut = new MenuItem("Cut");
|
||||||
mnuCut.setShortcut(new MenuShortcut(KeyEvent.VK_X));
|
//mnuCut.setShortcut(new MenuShortcut(KeyEvent.VK_X));
|
||||||
m.add(mnuCut);
|
m.add(mnuCut);
|
||||||
mnuCut.addActionListener(this);
|
mnuCut.addActionListener(this);
|
||||||
mnuCopy = new MenuItem("Copy");
|
mnuCopy = new MenuItem("Copy");
|
||||||
mnuCopy.setShortcut(new MenuShortcut(KeyEvent.VK_C));
|
//mnuCopy.setShortcut(new MenuShortcut(KeyEvent.VK_C));
|
||||||
m.add(mnuCopy);
|
m.add(mnuCopy);
|
||||||
mnuCopy.addActionListener(this);
|
mnuCopy.addActionListener(this);
|
||||||
mnuPaste = new MenuItem("Paste");
|
mnuPaste = new MenuItem("Paste");
|
||||||
mnuPaste.setShortcut(new MenuShortcut(KeyEvent.VK_V));
|
//mnuPaste.setShortcut(new MenuShortcut(KeyEvent.VK_V));
|
||||||
m.add(mnuPaste);
|
m.add(mnuPaste);
|
||||||
mnuPaste.addActionListener(this);
|
mnuPaste.addActionListener(this);
|
||||||
mnuDelete = new MenuItem("Delete");
|
mnuDelete = new MenuItem("Delete");
|
||||||
|
@ -90,7 +90,7 @@ public class WindowScannerFilter implements WindowListener, FocusListener, Actio
|
||||||
mnuDelete.addActionListener(this);
|
mnuDelete.addActionListener(this);
|
||||||
m.add("-");
|
m.add("-");
|
||||||
mnuSelectAll = new MenuItem("Select all");
|
mnuSelectAll = new MenuItem("Select all");
|
||||||
mnuSelectAll.setShortcut(new MenuShortcut(KeyEvent.VK_A));
|
//mnuSelectAll.setShortcut(new MenuShortcut(KeyEvent.VK_A));
|
||||||
m.add(mnuSelectAll);
|
m.add(mnuSelectAll);
|
||||||
mnuSelectAll.addActionListener(this);
|
mnuSelectAll.addActionListener(this);
|
||||||
mnuClear = new MenuItem("Clear all");
|
mnuClear = new MenuItem("Clear all");
|
||||||
|
|
Loading…
Reference in a new issue