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:
Cédric Krier
2025-07-03 16:24:59 +02:00
parent 4238add5e3
commit 125668e0e2
+4 -2
View File
@@ -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() {