details:   https://code.openbravo.com/erp/devel/pi/rev/11230817c0bc
changeset: 22665:11230817c0bc
user:      Augusto Mauch <augusto.mauch <at> openbravo.com>
date:      Mon Mar 10 16:00:03 2014 +0100
summary:   Fixes issue 25938: Enables using the arrow keys to navigate in a 
grouped grid

diffstat:

 
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
 |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 000a54089250 -r 11230817c0bc 
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
  Mon Mar 10 11:25:37 2014 -0300
+++ 
b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/grid/ob-grid.js
  Mon Mar 10 16:00:03 2014 +0100
@@ -179,7 +179,7 @@
   },
 
   bodyKeyPress: function (event, eventInfo) {
-    if (eventInfo && this.lastSelectedRecord && ((eventInfo.keyName === 
isc.OBViewGrid.ARROW_UP_KEY_NAME && this.data.localData[0].id === 
this.lastSelectedRecord.id) || (eventInfo.keyName === 
isc.OBViewGrid.ARROW_DOWN_KEY_NAME && 
this.data.localData[this.data.localData.length - 1] && 
this.data.localData[this.data.localData.length - 1].id === 
this.lastSelectedRecord.id))) {
+    if (eventInfo && this.lastSelectedRecord && ((eventInfo.keyName === 
isc.OBViewGrid.ARROW_UP_KEY_NAME && this.data.localData && 
this.data.localData[0].id === this.lastSelectedRecord.id) || (eventInfo.keyName 
=== isc.OBViewGrid.ARROW_DOWN_KEY_NAME && this.data.localData && 
this.data.localData[this.data.localData.length - 1] && 
this.data.localData[this.data.localData.length - 1].id === 
this.lastSelectedRecord.id))) {
       return true;
     }
     var response = OB.KeyboardManager.Shortcuts.monitor('OBGrid.body', this);

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
Openbravo-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to