Answer the question
In order to leave comments, you need to log in
How to hang a keypress handler on document/window in Vue.js?
I'm using Vue.js
It is necessary that when a certain key (or key combination), such as Del or Backspase, is pressed anywhere on the page, a press handler is called.
How can this be done with Vue.js?
Events like @keydown work, as I understand it, only in input fields.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question