Add Tree checkbox check/uncheck behavior when pressing enter

This commit is contained in:
Franklin Sobrinho 2015-11-05 12:20:45 -03:00
parent dde6396f22
commit 8d48cf95b9
1 changed files with 5 additions and 2 deletions

View File

@ -2266,9 +2266,12 @@ bool Tree::edit_selected() {
TreeItem::Cell &c = s->cells[col];
if (c.mode==TreeItem::CELL_MODE_CHECK) {
if (c.mode==TreeItem::CELL_MODE_CUSTOM) {
s->set_checked(col, !c.checked);
item_edited(col,s);
return true;
} else if (c.mode==TreeItem::CELL_MODE_CUSTOM) {
edited_item=s;
edited_col=col;