From 20d37271bf0397e7d39ffcd462920a71454e1f6b Mon Sep 17 00:00:00 2001 From: Heng Sin Low Date: Tue, 8 Feb 2011 10:53:35 +0800 Subject: [PATCH] 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. --- org.adempiere.ui.swing/src/org/compiere/apps/APanel.java | 2 +- .../src/org/adempiere/webui/component/CWindowToolbar.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/org.adempiere.ui.swing/src/org/compiere/apps/APanel.java b/org.adempiere.ui.swing/src/org/compiere/apps/APanel.java index 83b90f4532..44865f8443 100644 --- a/org.adempiere.ui.swing/src/org/compiere/apps/APanel.java +++ b/org.adempiere.ui.swing/src/org/compiere/apps/APanel.java @@ -350,7 +350,7 @@ public final class APanel extends CPanel menuBar.add(mEdit); aNew = addAction("New", mEdit, KeyStroke.getKeyStroke(KeyEvent.VK_F2, 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(); aCopy = addAction("Copy", mEdit, KeyStroke.getKeyStroke(KeyEvent.VK_F2, Event.SHIFT_MASK), false); aDelete = addAction("Delete", mEdit, KeyStroke.getKeyStroke(KeyEvent.VK_F3, 0), false); diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/CWindowToolbar.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/CWindowToolbar.java index e4db27a82b..0cdef8268c 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/CWindowToolbar.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/component/CWindowToolbar.java @@ -293,7 +293,7 @@ public class CWindowToolbar extends FToolbar implements EventListener ctrlKeyMap.put(VK_P, btnPrint); ctrlKeyMap.put(VK_N, btnNew); ctrlKeyMap.put(VK_S, btnSave); - ctrlKeyMap.put(VK_A, btnSaveAndCreate); + ctrlKeyMap.put(VK_Q, btnSaveAndCreate); ctrlKeyMap.put(VK_D, btnDelete); ctrlKeyMap.put(VK_F, btnFind); }