X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/3789b528d8dd8aad4558e38e22d775bcab1cbd36..HEAD:/docs/source/TreeModel.html
diff --git a/docs/source/TreeModel.html b/docs/source/TreeModel.html
index 7db965e7..6fb09239 100644
--- a/docs/source/TreeModel.html
+++ b/docs/source/TreeModel.html
@@ -3,8 +3,8 @@
The source code
-
-
+
+
@@ -81,16 +81,15 @@ Ext.define('Ext.selection.TreeModel', {
},
onKeyPress: function(e, t) {
- var selected, checked;
+ var key = e.getKey(),
+ selected,
+ checked;
- if (e.getKey() === e.SPACE || e.getKey() === e.ENTER) {
+ if (key === e.SPACE || key === e.ENTER) {
e.stopEvent();
selected = this.getLastSelected();
- if (selected && selected.isLeaf()) {
- checked = selected.get('checked');
- if (Ext.isBoolean(checked)) {
- selected.set('checked', !checked);
- }
+ if (selected) {
+ this.view.onCheckChange(selected);
}
} else {
this.callParent(arguments);