mirror of
https://github.com/nextcloud/server.git
synced 2026-03-12 05:33:11 -04:00
enh(files): added ability to escape out of all selection when focused
Signed-off-by: Eduardo Morales <emoral435@gmail.com>
This commit is contained in:
parent
73aeaa1411
commit
e1940ba368
4 changed files with 15 additions and 5 deletions
|
|
@ -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,
|
||||
},
|
||||
})
|
||||
|
|
|
|||
4
dist/files-main.js
vendored
4
dist/files-main.js
vendored
File diff suppressed because one or more lines are too long
2
dist/files-main.js.map
vendored
2
dist/files-main.js.map
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue