details: https://code.openbravo.com/erp/devel/pi/rev/a7f3c703cb83 changeset: 30682:a7f3c703cb83 user: Naroa Iriarte <naroa.iriarte <at> openbravo.com> date: Thu Nov 24 16:01:47 2016 +0100 summary: Fixed issue 34051: The tab key was not focusing properly in some circumstances
The fields were not correctly focused when using the tab key. If there was an image in the form, the focus was jumping to it when it was supposed not to. The problems seems to be in the canvas item. The tab index was not being properly set. To fix this the "ob-formitem-image.js" has been modifyed, now, the "canFocus" property has been set to true for the image canvas. diffstat: modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-image.js | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diffs (11 lines): diff -r c876c12bb791 -r a7f3c703cb83 modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-image.js --- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-image.js Mon Nov 21 14:04:51 2016 -0600 +++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-image.js Thu Nov 24 16:01:47 2016 +0100 @@ -230,6 +230,7 @@ init: function () { this.canvasProperties = this.canvasProperties || {}; this.canvasProperties.parentItem = this; + this.canvasProperties.canFocus = true; this.Super('init', arguments); }, //This formitem will never be disabled, so even if the form is readonly, click events will still be triggered ------------------------------------------------------------------------------ _______________________________________________ Openbravo-commits mailing list Openbravo-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openbravo-commits