Related to issue 19710: Can't tab through the filtereditor fields
authorMartin Taal <martin.taal@openbravo.com>
Sat, 25 Feb 2012 20:43:23 +0100
changeset 15617 ae5795104d22
parent 15616 e262708b03f4
child 15618 53ba4554c028
Related to issue 19710: Can't tab through the filtereditor fields
Rolled back change as the error occur does not occur with the previous version of smartclient
to which we moved because of issue 19689
This fix needs to be re-applied when smartclient is upgraded.
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js	Fri Feb 24 09:59:52 2012 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js	Sat Feb 25 20:43:23 2012 +0100
@@ -112,6 +112,9 @@
   filterFieldsKeyDown: function (item, form, keyName) {
     var response = OB.KeyboardManager.Shortcuts.monitor('OBGrid.filter');
     if (response !== false) {
+      if (isc.EventHandler.getKeyName() === 'Tab' && !isc.EventHandler.ctrlKeyDown() && !isc.EventHandler.altKeyDown()) {
+        return false; // To avoid strange double field jump while pressing Tab Key
+      }
       response = this.Super('filterFieldsKeyDown', arguments);
     }
     return response;