fix: prompt key shortcut conflict

This commit is contained in:
Ramires Viana
2020-07-04 14:19:03 +00:00
parent de0b8bb7b2
commit 0d69fbd9a3
3 changed files with 24 additions and 18 deletions

View File

@@ -136,12 +136,6 @@ export default {
}
},
mounted() {
window.addEventListener("keydown", event => {
if (event.keyCode === 27) {
this.closeHovers()
}
})
this.$refs.result.addEventListener('scroll', event => {
if (event.target.offsetHeight + event.target.scrollTop >= event.target.scrollHeight - 100) {
this.resultsCount += 50