Hi!

The attached patch adds a new property to table, which controls the
behaviour of pressing enter in an editor cell.
--- qooxdoo-1.2.1-sdk-orig/framework/source/class/qx/ui/table/Table.js	2010-07-27 14:59:06.000000000 +0200
+++ qooxdoo/framework/source/class/qx/ui/table/Table.js	2010-11-19 17:31:34.000000000 +0100
@@ -649,6 +649,15 @@
       init : function(columnModel) {
         return new qx.ui.table.pane.Model(columnModel);
       }
+    },
+    
+    /**
+     * Whether to advance after cell edit
+     */
+    advanceAfterEdit :
+    {
+      check : "Boolean",
+      init : true
     }
   },
 
@@ -1313,7 +1322,9 @@
             case "Enter":
               this.stopEditing();
               var oldFocusedRow = this.__focusedRow;
-              this.moveFocusedCell(0, 1);
+              if (this.getAdvanceAfterEdit()) {
+              	this.moveFocusedCell(0, 1);
+              }
 
               if (this.__focusedRow != oldFocusedRow) {
                 consumed = this.startEditing();
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to