@@ -144,9 +145,6 @@
type: Number,
value: -1,
notify: true
- },
- keyEventTarget: {
- type: Object
}
}
}
@@ -209,6 +207,7 @@
let rect = item.getBoundingClientRect()
slide.src = item.dataset.url
slideshow.style.display = 'block'
+ slideshow.focus()
this.anime({
targets: slideshow,
top: [rect.top, 0],
@@ -271,7 +270,6 @@
ready () {
super.ready()
- this.keyEventTarget = document.body
let grid = this.$.grid
this.updateItems()