Implement saveAndCreate toolbar button - use ctrl-q as shortcut instead of ctrl-a which is commonly known as the short cut key for select all text.
This commit is contained in:
parent
72f706021a
commit
20d37271bf
|
@ -350,7 +350,7 @@ public final class APanel extends CPanel
|
||||||
menuBar.add(mEdit);
|
menuBar.add(mEdit);
|
||||||
aNew = addAction("New", mEdit, KeyStroke.getKeyStroke(KeyEvent.VK_F2, 0), false);
|
aNew = addAction("New", mEdit, KeyStroke.getKeyStroke(KeyEvent.VK_F2, 0), false);
|
||||||
aSave = addAction("Save", mEdit, KeyStroke.getKeyStroke(KeyEvent.VK_F4, 0), false);
|
aSave = addAction("Save", mEdit, KeyStroke.getKeyStroke(KeyEvent.VK_F4, 0), false);
|
||||||
aSaveAndCreate = addAction("SaveCreate", mEdit, null, false);
|
aSaveAndCreate = addAction("SaveCreate", mEdit, KeyStroke.getKeyStroke(KeyEvent.VK_Q, KeyEvent.CTRL_MASK), false);
|
||||||
mEdit.addSeparator();
|
mEdit.addSeparator();
|
||||||
aCopy = addAction("Copy", mEdit, KeyStroke.getKeyStroke(KeyEvent.VK_F2, Event.SHIFT_MASK), false);
|
aCopy = addAction("Copy", mEdit, KeyStroke.getKeyStroke(KeyEvent.VK_F2, Event.SHIFT_MASK), false);
|
||||||
aDelete = addAction("Delete", mEdit, KeyStroke.getKeyStroke(KeyEvent.VK_F3, 0), false);
|
aDelete = addAction("Delete", mEdit, KeyStroke.getKeyStroke(KeyEvent.VK_F3, 0), false);
|
||||||
|
|
|
@ -293,7 +293,7 @@ public class CWindowToolbar extends FToolbar implements EventListener
|
||||||
ctrlKeyMap.put(VK_P, btnPrint);
|
ctrlKeyMap.put(VK_P, btnPrint);
|
||||||
ctrlKeyMap.put(VK_N, btnNew);
|
ctrlKeyMap.put(VK_N, btnNew);
|
||||||
ctrlKeyMap.put(VK_S, btnSave);
|
ctrlKeyMap.put(VK_S, btnSave);
|
||||||
ctrlKeyMap.put(VK_A, btnSaveAndCreate);
|
ctrlKeyMap.put(VK_Q, btnSaveAndCreate);
|
||||||
ctrlKeyMap.put(VK_D, btnDelete);
|
ctrlKeyMap.put(VK_D, btnDelete);
|
||||||
ctrlKeyMap.put(VK_F, btnFind);
|
ctrlKeyMap.put(VK_F, btnFind);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue