Merge pull request #42415 from nextcloud/feat/add-escape-option-to-selection-of-files-while-focused

enh(files): added ability to escape out of all selection when focused
pull/42439/head
Eduardo Morales 5 months ago committed by GitHub
commit e24efd1719
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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,
},
})

@ -21,7 +21,8 @@
-->
<template>
<tr class="files-list__row-head">
<th class="files-list__column files-list__row-checkbox">
<th class="files-list__column files-list__row-checkbox"
@keyup.esc.exact="resetSelection">
<NcCheckboxRadioSwitch v-bind="selectAllBind" @update:checked="onToggleAll" />
</th>
@ -204,6 +205,10 @@ export default Vue.extend({
}
},
resetSelection() {
this.selectionStore.reset()
},
t: translate,
},
})

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save