Answer the question
In order to leave comments, you need to log in
Why doesn't the keydown event on the div work?
There is a popup that opens to the entire page in height and width, a handler was hung on the wrapper , but this event simply does not work.
The task is as follows - so that the popup closes on escape, and the slider (self-written) in it reacts to the left and right buttons.
The question is exactly why the event does not fire, because the block is full screen?
And how to do it right, because I have an idea to hang an event handler on window, but how to do it right in Vue? After all, if this is done, then at any time any key is pressed, the handler !!is for the popup!! will run every time, even if the popup is closed altogether. @keydown="closePictBuildingPopupSELF"
Answer the question
In order to leave comments, you need to log in
https://stackoverflow.com/questions/148361/how-can...
will help
you
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question