It seems that the Vue @keydown on v-dialog/v-overlay stops working when a < v-card > is present. Why does this not work, and how to fix?
<v-overlay :value="olyThing" @keydown.esc="olyThing=false" tabindex="0">
<v-card
width="80vw"
height="80vh"
@click="olyThing=false">
</v-card>
</v-overlay>
While this does does work:
<v-overlay :value="olyThing" @keydown.esc="olyThing=false" tabindex="0">
</v-overlay>
Somehow the v-card is preventing the keydown to come through. Tried to put the @keydown on the v-card, but this doesn't fix it. Same effect on a v-dialog, instead on a v-overlay. I also tried doing a @keydown.native.esc, but nothing seems to work.
I'm not looking for a solution involving an eventHandler on the window. I'd like to keep this localized to the component.