[KS] added SelectWorkspaceTab shortcut
authorDavid Baz Fayos <david.baz@openbravo.com>
Wed, 01 Jun 2011 22:29:17 +0200
changeset 12661 7b6d53303a75
parent 12660 b1492be401e3
child 12662 8ed05d7554d8
[KS] added SelectWorkspaceTab shortcut
modules/org.openbravo.client.application/src-db/database/sourcedata/AD_PREFERENCE.xml
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-tab.js
--- a/modules/org.openbravo.client.application/src-db/database/sourcedata/AD_PREFERENCE.xml	Wed Jun 01 21:49:45 2011 +0200
+++ b/modules/org.openbravo.client.application/src-db/database/sourcedata/AD_PREFERENCE.xml	Wed Jun 01 22:29:17 2011 +0200
@@ -22,6 +22,7 @@
   {"id": "TabSet_SelectChildTab", "keyComb": {"alt": true, "shift": true, "key": "Arrow_Down"}},
   {"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": "Grid_EditInForm", "keyComb": {"ctrl": true, "alt": false, "key": "f2"}},
   {"id": "Grid_EditInGrid", "keyComb": {"ctrl": false, "alt": false, "key": "f2"}}
 ]]]></VALUE>
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-tab.js	Wed Jun 01 21:49:45 2011 +0200
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-tab.js	Wed Jun 01 22:29:17 2011 +0200
@@ -127,6 +127,11 @@
       return false; //To avoid keyboard shortcut propagation
     };
     OB.KeyboardManager.KS.set('TabSet_SelectNextTab', ksAction_SelectNextTab);
+    var ksAction_SelectWorkspaceTab = function() {
+      me.selectTab(0);
+      return false; //To avoid keyboard shortcut propagation
+    };
+    OB.KeyboardManager.KS.set('TabSet_SelectWorkspaceTab', ksAction_SelectWorkspaceTab);
     this.Super('draw', arguments);
   },