@max100 You need to add event listener to vue component like this
created() {
window.addEventListener('keypress', event => {
if (event.key === '/') {
event.preventDefault()
this.openModal()
}
})
}
You can also see this thread: https://laracasts.com/discuss/channels/vue/vuejs-listen-for-key-events-on-div