diff options
Diffstat (limited to 'apps/files/src/components/FileEntry/FileEntryCheckbox.vue')
-rw-r--r-- | apps/files/src/components/FileEntry/FileEntryCheckbox.vue | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/files/src/components/FileEntry/FileEntryCheckbox.vue b/apps/files/src/components/FileEntry/FileEntryCheckbox.vue index 961e4bf2266..ff88b461737 100644 --- a/apps/files/src/components/FileEntry/FileEntryCheckbox.vue +++ b/apps/files/src/components/FileEntry/FileEntryCheckbox.vue @@ -20,7 +20,8 @@ - --> <template> - <td class="files-list__row-checkbox"> + <td class="files-list__row-checkbox" + @keyup.esc.exact="resetSelection"> <NcLoadingIcon v-if="isLoading" /> <NcCheckboxRadioSwitch v-else :aria-label="t('files', 'Select the row for {displayName}', { displayName })" @@ -125,6 +126,10 @@ export default Vue.extend({ this.selectionStore.setLastIndex(newSelectedIndex) }, + resetSelection() { + this.selectionStore.reset() + }, + t, }, }) |