details:   https://code.openbravo.com/erp/devel/pi/rev/49221a5152f2
changeset: 35995:49221a5152f2
user:      Carlos Aristu <carlos.aristu <at> openbravo.com>
date:      Tue Jun 04 17:06:14 2019 +0200
summary:   fixes bug 41007: Don't open pickers of date range filter when 
pressing enter

  In the standard form view there is no shortcut to open the calendar picker. 
The date fields of the date range filter pop-up should behave in the same way.

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
 |  9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diffs (19 lines):

diff -r 1fddb0a46a5b -r 49221a5152f2 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
--- 
a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
       Thu May 09 14:52:16 2019 -0400
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/form/formitem/ob-formitem-minidaterange.js
       Tue Jun 04 17:06:14 2019 +0200
@@ -242,15 +242,6 @@
 });
 
 isc.OBRelativeDateItem.changeDefaults('valueFieldDefaults', {
-  keyPress: function (item, form, keyName, characterValue) {
-    if (keyName === 'Enter' && !isc.EventHandler.ctrlKeyDown() && 
!isc.EventHandler.altKeyDown() && !isc.EventHandler.shiftKeyDown()) {
-      // canvasItem is the rangeItem
-      form.canvasItem.showPicker();
-      return false;
-    }
-    return true;
-  },
-
   init: function () {
     this.icons = [{
       width: this.calendarIconWidth,


_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to