In Vue.js hang a handler for keypress on the document/window?

Use Vue.js
You need to clicking anywhere on the page certain keys (or key combinations), for example, Del or Backspase, causes a processor of depression.
How it can be implemented by means Vue.js?
Events like @keydown, triggered, as I understand, only input fields.
June 5th 19 at 21:22
1 answer
June 5th 19 at 21:24
so there is no Vue version.
But the normal use is no different from just catching events on the document. In terms of integration with Vue I mean. - Lulu_Zulauf71 commented on June 5th 19 at 21:27
Yes I did, the standard js handler - Emiliano28 commented on June 5th 19 at 21:30

Find more questions by tags Vue.js