Do not change the selection of row when starting the edition
The edition of tree row relies on having the current record of the screen set to the row edited. This can be only guarantee if we do not change the selection. Closes #14097
This commit is contained in:
@@ -2232,11 +2232,13 @@
|
||||
}
|
||||
listener.on('click.sao.editabletree', handler);
|
||||
|
||||
Sao.View.Tree.RowEditable._super.select_row.call(this, event_);
|
||||
|
||||
// do not call super when editing row because the selection must
|
||||
// not be changed
|
||||
if (!event_.shiftKey && !(event_.ctrlKey || event_.metaKey) &&
|
||||
(this.record === current_record)) {
|
||||
this.tree.edit_row(this);
|
||||
} else {
|
||||
Sao.View.Tree.RowEditable._super.select_row.call(this, event_);
|
||||
}
|
||||
},
|
||||
unset_editable: function() {
|
||||
|
||||
Reference in New Issue
Block a user