Add escape button support

This commit is contained in:
shpuld 2019-01-16 17:27:23 +02:00
parent 17735943d5
commit e1c3691a72
3 changed files with 15 additions and 6 deletions

View file

@ -28,7 +28,6 @@ const mediaViewer = {
},
setCurrent ({ commit, state }, current) {
const index = state.media.indexOf(current)
console.log(index, current)
commit('setCurrent', index || 0)
},
closeMediaViewer ({ commit }) {