this.list.hide();
Roo.get(document).un('mousedown', this.collapseIf, this);
Roo.get(document).un('mousewheel', this.collapseIf, this);
+ if (!this.editable) {
+ Roo.get(document).un('keypress', this.listKeyPress, this);
+ }
this.fireEvent('collapse', this);
},
this.list.show();
Roo.get(document).on('mousedown', this.collapseIf, this);
Roo.get(document).on('mousewheel', this.collapseIf, this);
+ if (!this.editable) {
+ Roo.get(document).on('keypress', this.listKeyPress, this);
+ }
+
this.fireEvent('expand', this);
},