mirror of https://github.com/Fabio286/antares.git
fix: select all rows with ctrl+a when editing a cell
This commit is contained in:
parent
992a033cb2
commit
35cb7e1dc4
|
@ -5,7 +5,7 @@
|
||||||
tabindex="0"
|
tabindex="0"
|
||||||
:style="{'height': resultsSize+'px'}"
|
:style="{'height': resultsSize+'px'}"
|
||||||
@keyup.46="showDeleteConfirmModal"
|
@keyup.46="showDeleteConfirmModal"
|
||||||
@keydown.ctrl.65="selectAllRows"
|
@keydown.ctrl.65="selectAllRows($event)"
|
||||||
@keydown.esc="deselectRows"
|
@keydown.esc="deselectRows"
|
||||||
>
|
>
|
||||||
<TableContext
|
<TableContext
|
||||||
|
@ -450,7 +450,9 @@ export default {
|
||||||
else
|
else
|
||||||
this.selectedRows = [row];
|
this.selectedRows = [row];
|
||||||
},
|
},
|
||||||
selectAllRows () {
|
selectAllRows (e) {
|
||||||
|
if (e.target.classList.contains('editable-field')) return;
|
||||||
|
|
||||||
this.selectedRows = this.localResults.reduce((acc, curr) => {
|
this.selectedRows = this.localResults.reduce((acc, curr) => {
|
||||||
acc.push(curr._antares_id);
|
acc.push(curr._antares_id);
|
||||||
return acc;
|
return acc;
|
||||||
|
|
Loading…
Reference in New Issue