X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/6746dc89c47ed01b165cc1152533605f97eb8e8d..HEAD:/docs/source/TreeModel.html?ds=inline 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);