Skip to content

Commit

Permalink
fix: select all rows with ctrl+a when editing a cell
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio286 committed Dec 8, 2021
1 parent 992a033 commit 35cb7e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/renderer/components/WorkspaceTabQueryTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
tabindex="0"
:style="{'height': resultsSize+'px'}"
@keyup.46="showDeleteConfirmModal"
@keydown.ctrl.65="selectAllRows"
@keydown.ctrl.65="selectAllRows($event)"
@keydown.esc="deselectRows"
>
<TableContext
Expand Down Expand Up @@ -450,7 +450,9 @@ export default {
else
this.selectedRows = [row];
},
selectAllRows () {
selectAllRows (e) {
if (e.target.classList.contains('editable-field')) return;
this.selectedRows = this.localResults.reduce((acc, curr) => {
acc.push(curr._antares_id);
return acc;
Expand Down

0 comments on commit 35cb7e1

Please sign in to comment.