[KS] Code cleanup
authorDavid Baz Fayos <david.baz@openbravo.com>
Wed, 01 Jun 2011 23:10:46 +0200
changeset 12663 f8df9380938e
parent 12662 8ed05d7554d8
child 12664 ab3efc55cda3
[KS] Code cleanup
modules/org.openbravo.client.application/src-db/database/sourcedata/AD_PREFERENCE.xml
modules/org.openbravo.client.application/src-db/database/sourcedata/AD_REF_LIST.xml
modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/layout.js.ftl
--- a/modules/org.openbravo.client.application/src-db/database/sourcedata/AD_PREFERENCE.xml	Wed Jun 01 22:59:04 2011 +0200
+++ b/modules/org.openbravo.client.application/src-db/database/sourcedata/AD_PREFERENCE.xml	Wed Jun 01 23:10:46 2011 +0200
@@ -23,6 +23,29 @@
   {"id": "TabSet_SelectPreviousTab", "keyComb": {"alt": true, "shift": true, "key": "Arrow_Left"}},
   {"id": "TabSet_SelectNextTab", "keyComb": {"alt": true, "shift": true, "key": "Arrow_Right"}},
   {"id": "TabSet_SelectWorkspaceTab", "keyComb": {"alt": true, "shift": true, "key": "1"}},
+  {"id": "ToolBar_NewDoc", "keyComb": {"ctrl": true, "key": "D"}},
+  {"id": "ToolBar_NewRow", "keyComb": {"ctrl": true, "key": "I"}},
+  {"id": "ToolBar_Save", "keyComb": {"ctrl": true, "key": "S"}},
+  {"id": "ToolBar_SaveClose", "keyComb": {"ctrl": true, "shift": true, "key": "X"}},
+  {"id": "ToolBar_Undo", "keyComb": {"ctrl": true, "shift": true, "key": "Z"}},
+  {"id": "ToolBar_Eliminate", "keyComb": {"ctrl": true, "key": "Delete"}},
+  {"id": "ToolBar_Refresh", "keyComb": {"ctrl": true, "shift": true, "key": "R"}},
+  {"id": "ToolBar_Export", "keyComb": {"ctrl": true, "shift": true, "key": "E"}},
+  {"id": "ToolBar_Attachments", "keyComb": {"ctrl": true, "shift": true, "key": "A"}},
+  {"id": "ToolBar_Clone", "keyComb": {"ctrl": true, "shift": true, "key": "K"}},
+  {"id": "ToolBar_Print", "keyComb": {"ctrl": true, "shift": true, "key": "P"}},
+  {"id": "ToolBar_Email", "keyComb": {"ctrl": true, "shift": true, "key": "M"}},
+  {"id": "ToolBar_Audit", "keyComb": {"ctrl": true, "shift": true, "key": "L"}},
+  {"id": "ToolBar_Link", "keyComb": {"ctrl": true, "shift": true, "key": "U"}},
+  {"id": "StatusBar_Previous", "keyComb": {"alt": true, "shift": true, "key": "Page_Up"}},
+  {"id": "StatusBar_Next", "keyComb": {"alt": true, "shift": true, "key": "Page_Down"}},
+  {"id": "StatusBar_Maximize-Restore", "keyComb": {"ctrl": true, "alt": true, "key": "Enter"}},
+  {"id": "StatusBar_Close", "keyComb": {"key": "Escape"}},
+  {"id": "SectionItem_MoreInformation", "keyComb": {"ctrl": true, "shift": true, "key": "1"}},
+  {"id": "SectionItem_Audit", "keyComb": {"ctrl": true, "shift": true, "key": "2"}},
+  {"id": "SectionItem_Notes", "keyComb": {"ctrl": true, "shift": true, "key": "3"}},
+  {"id": "SectionItem_LinkedItems", "keyComb": {"ctrl": true, "shift": true, "key": "4"}},
+  {"id": "SectionItem_Attachments", "keyComb": {"ctrl": true, "shift": true, "key": "5"}},
   {"id": "Grid_EditInForm", "keyComb": {"ctrl": true, "alt": false, "key": "f2"}},
   {"id": "Grid_EditInGrid", "keyComb": {"ctrl": false, "alt": false, "key": "f2"}}
 ]]]></VALUE>
@@ -50,53 +73,6 @@
 <!--6EE6D055A7FE4C4DA7EB557F6C61D0EB-->  <AD_MODULE_ID><![CDATA[9BA0836A3CD74EE4AB48753A47211BCC]]></AD_MODULE_ID>
 <!--6EE6D055A7FE4C4DA7EB557F6C61D0EB--></AD_PREFERENCE>
 
-<!--7EE6D055A7FE4C4DA7EB557F6C61D0EC--><AD_PREFERENCE>
-<!--7EE6D055A7FE4C4DA7EB557F6C61D0EC-->  <AD_PREFERENCE_ID><![CDATA[7EE6D055A7FE4C4DA7EB557F6C61D0EC]]></AD_PREFERENCE_ID>
-<!--7EE6D055A7FE4C4DA7EB557F6C61D0EC-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--7EE6D055A7FE4C4DA7EB557F6C61D0EC-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--7EE6D055A7FE4C4DA7EB557F6C61D0EC-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--7EE6D055A7FE4C4DA7EB557F6C61D0EC-->  <VALUE><![CDATA[[
-  {"id": "ToolBar_NewDoc", "keyComb": {"ctrl": true, "key": "D"}},
-  {"id": "ToolBar_NewRow", "keyComb": {"ctrl": true, "key": "I"}},
-  {"id": "ToolBar_Save", "keyComb": {"ctrl": true, "key": "S"}},
-  {"id": "ToolBar_SaveClose", "keyComb": {"ctrl": true, "shift": true, "key": "X"}},
-  {"id": "ToolBar_Undo", "keyComb": {"ctrl": true, "shift": true, "key": "Z"}},
-  {"id": "ToolBar_Eliminate", "keyComb": {"ctrl": true, "key": "Delete"}},
-  {"id": "ToolBar_Refresh", "keyComb": {"ctrl": true, "shift": true, "key": "R"}},
-  {"id": "ToolBar_Export", "keyComb": {"ctrl": true, "shift": true, "key": "E"}},
-  {"id": "ToolBar_Attachments", "keyComb": {"ctrl": true, "shift": true, "key": "A"}},
-  {"id": "ToolBar_Clone", "keyComb": {"ctrl": true, "shift": true, "key": "K"}},
-  {"id": "ToolBar_Print", "keyComb": {"ctrl": true, "shift": true, "key": "P"}},
-  {"id": "ToolBar_Email", "keyComb": {"ctrl": true, "shift": true, "key": "M"}},
-  {"id": "ToolBar_Audit", "keyComb": {"ctrl": true, "shift": true, "key": "L"}},
-  {"id": "ToolBar_Link", "keyComb": {"ctrl": true, "shift": true, "key": "U"}}
-]]]></VALUE>
-<!--7EE6D055A7FE4C4DA7EB557F6C61D0EC-->  <PROPERTY><![CDATA[UITOOLB_KeyboardShortcuts]]></PROPERTY>
-<!--7EE6D055A7FE4C4DA7EB557F6C61D0EC-->  <ISPROPERTYLIST><![CDATA[Y]]></ISPROPERTYLIST>
-<!--7EE6D055A7FE4C4DA7EB557F6C61D0EC-->  <AD_MODULE_ID><![CDATA[9BA0836A3CD74EE4AB48753A47211BCC]]></AD_MODULE_ID>
-<!--7EE6D055A7FE4C4DA7EB557F6C61D0EC--></AD_PREFERENCE>
-
-<!--8EE6D055A7FE4C4DA7EB557F6C61D0ED--><AD_PREFERENCE>
-<!--8EE6D055A7FE4C4DA7EB557F6C61D0ED-->  <AD_PREFERENCE_ID><![CDATA[8EE6D055A7FE4C4DA7EB557F6C61D0ED]]></AD_PREFERENCE_ID>
-<!--8EE6D055A7FE4C4DA7EB557F6C61D0ED-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--8EE6D055A7FE4C4DA7EB557F6C61D0ED-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--8EE6D055A7FE4C4DA7EB557F6C61D0ED-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--8EE6D055A7FE4C4DA7EB557F6C61D0ED-->  <VALUE><![CDATA[[
-  {"id": "StatusBar_Previous", "keyComb": {"alt": true, "shift": true, "key": "Page_Up"}},
-  {"id": "StatusBar_Next", "keyComb": {"alt": true, "shift": true, "key": "Page_Down"}},
-  {"id": "StatusBar_Maximize-Restore", "keyComb": {"ctrl": true, "alt": true, "key": "Enter"}},
-  {"id": "StatusBar_Close", "keyComb": {"key": "Escape"}},
-  {"id": "SectionItem_MoreInformation", "keyComb": {"ctrl": true, "shift": true, "key": "1"}},
-  {"id": "SectionItem_Audit", "keyComb": {"ctrl": true, "shift": true, "key": "2"}},
-  {"id": "SectionItem_Notes", "keyComb": {"ctrl": true, "shift": true, "key": "3"}},
-  {"id": "SectionItem_LinkedItems", "keyComb": {"ctrl": true, "shift": true, "key": "4"}},
-  {"id": "SectionItem_Attachments", "keyComb": {"ctrl": true, "shift": true, "key": "5"}}
-]]]></VALUE>
-<!--8EE6D055A7FE4C4DA7EB557F6C61D0ED-->  <PROPERTY><![CDATA[UISTATB_KeyboardShortcuts]]></PROPERTY>
-<!--8EE6D055A7FE4C4DA7EB557F6C61D0ED-->  <ISPROPERTYLIST><![CDATA[Y]]></ISPROPERTYLIST>
-<!--8EE6D055A7FE4C4DA7EB557F6C61D0ED-->  <AD_MODULE_ID><![CDATA[9BA0836A3CD74EE4AB48753A47211BCC]]></AD_MODULE_ID>
-<!--8EE6D055A7FE4C4DA7EB557F6C61D0ED--></AD_PREFERENCE>
-
 <!--C085B29F345B423F9E7DE5677359E02B--><AD_PREFERENCE>
 <!--C085B29F345B423F9E7DE5677359E02B-->  <AD_PREFERENCE_ID><![CDATA[C085B29F345B423F9E7DE5677359E02B]]></AD_PREFERENCE_ID>
 <!--C085B29F345B423F9E7DE5677359E02B-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.client.application/src-db/database/sourcedata/AD_REF_LIST.xml	Wed Jun 01 22:59:04 2011 +0200
+++ b/modules/org.openbravo.client.application/src-db/database/sourcedata/AD_REF_LIST.xml	Wed Jun 01 23:10:46 2011 +0200
@@ -128,28 +128,6 @@
 <!--C38DEECEC59544609E4CC4D7FC819E46-->  <AD_MODULE_ID><![CDATA[9BA0836A3CD74EE4AB48753A47211BCC]]></AD_MODULE_ID>
 <!--C38DEECEC59544609E4CC4D7FC819E46--></AD_REF_LIST>
 
-<!--CF6EAC4255D0484399EF03DB23376CD5--><AD_REF_LIST>
-<!--CF6EAC4255D0484399EF03DB23376CD5-->  <AD_REF_LIST_ID><![CDATA[CF6EAC4255D0484399EF03DB23376CD5]]></AD_REF_LIST_ID>
-<!--CF6EAC4255D0484399EF03DB23376CD5-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--CF6EAC4255D0484399EF03DB23376CD5-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--CF6EAC4255D0484399EF03DB23376CD5-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--CF6EAC4255D0484399EF03DB23376CD5-->  <VALUE><![CDATA[UITOOLB_KeyboardShortcuts]]></VALUE>
-<!--CF6EAC4255D0484399EF03DB23376CD5-->  <NAME><![CDATA[Keyboard Shortcuts (UITOOLB)]]></NAME>
-<!--CF6EAC4255D0484399EF03DB23376CD5-->  <AD_REFERENCE_ID><![CDATA[A26BA480E2014707B47257024C3CBFF7]]></AD_REFERENCE_ID>
-<!--CF6EAC4255D0484399EF03DB23376CD5-->  <AD_MODULE_ID><![CDATA[9BA0836A3CD74EE4AB48753A47211BCC]]></AD_MODULE_ID>
-<!--CF6EAC4255D0484399EF03DB23376CD5--></AD_REF_LIST>
-
-<!--DF6EAC4255D0484399EF03DB23376CD6--><AD_REF_LIST>
-<!--DF6EAC4255D0484399EF03DB23376CD6-->  <AD_REF_LIST_ID><![CDATA[DF6EAC4255D0484399EF03DB23376CD6]]></AD_REF_LIST_ID>
-<!--DF6EAC4255D0484399EF03DB23376CD6-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
-<!--DF6EAC4255D0484399EF03DB23376CD6-->  <AD_ORG_ID><![CDATA[0]]></AD_ORG_ID>
-<!--DF6EAC4255D0484399EF03DB23376CD6-->  <ISACTIVE><![CDATA[Y]]></ISACTIVE>
-<!--DF6EAC4255D0484399EF03DB23376CD6-->  <VALUE><![CDATA[UISTATB_KeyboardShortcuts]]></VALUE>
-<!--DF6EAC4255D0484399EF03DB23376CD6-->  <NAME><![CDATA[Keyboard Shortcuts (UISTATB)]]></NAME>
-<!--DF6EAC4255D0484399EF03DB23376CD6-->  <AD_REFERENCE_ID><![CDATA[A26BA480E2014707B47257024C3CBFF7]]></AD_REFERENCE_ID>
-<!--DF6EAC4255D0484399EF03DB23376CD6-->  <AD_MODULE_ID><![CDATA[9BA0836A3CD74EE4AB48753A47211BCC]]></AD_MODULE_ID>
-<!--DF6EAC4255D0484399EF03DB23376CD6--></AD_REF_LIST>
-
 <!--FF8080812DE1CD58012DE1FC1FB9002F--><AD_REF_LIST>
 <!--FF8080812DE1CD58012DE1FC1FB9002F-->  <AD_REF_LIST_ID><![CDATA[FF8080812DE1CD58012DE1FC1FB9002F]]></AD_REF_LIST_ID>
 <!--FF8080812DE1CD58012DE1FC1FB9002F-->  <AD_CLIENT_ID><![CDATA[0]]></AD_CLIENT_ID>
--- a/modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/layout.js.ftl	Wed Jun 01 22:59:04 2011 +0200
+++ b/modules/org.openbravo.client.application/src/org/openbravo/client/application/templates/layout.js.ftl	Wed Jun 01 23:10:46 2011 +0200
@@ -43,8 +43,6 @@
 
 OB.KeyboardManager.KS.setPredefinedKSList('OBUIAPP_KeyboardShortcuts');
 OB.KeyboardManager.KS.setPredefinedKSList('UINAVBA_KeyboardShortcuts');
-OB.KeyboardManager.KS.setPredefinedKSList('UITOOLB_KeyboardShortcuts');
-OB.KeyboardManager.KS.setPredefinedKSList('UISTATB_KeyboardShortcuts');
 
 // should be moved to client.kernel component
 // placed here to prevent dependencies of client.kernel on Preferences