mirror of
https://github.com/filebrowser/filebrowser.git
synced 2026-01-23 02:35:10 +00:00
chore: close preview on esc key press (#1288)
This commit is contained in:
parent
f1b7bd59f6
commit
977ec33918
1 changed files with 2 additions and 0 deletions
|
|
@ -177,6 +177,8 @@ export default {
|
|||
if (this.hasNext) this.next()
|
||||
} else if (event.which === 37) { // left arrow
|
||||
if (this.hasPrevious) this.prev()
|
||||
} else if (event.which === 27) { // esc
|
||||
this.back()
|
||||
}
|
||||
},
|
||||
async updatePreview () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue