Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

105
Vistas
How to manually trigger a key press event with Vue

I got in my Vue project a Balkan Orgchart that displays a pretty cool chart that has an option to go "fullscreen" but now I added a button that opens a modal (vuedal) window when pressed. The problem is that I can't see the modal window when the chart is in fullscreen, so I wanted to force the press of the Esc key so the user will get out of the fullscreen mode before opening the modal window.

That's why I wanted to manually trigger the Esc key press event when the user tries to open the modal window.

Any clue?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

If you are trying to achieve the original event of pressing esc key, you can emit the keydown event with the keycode of the esc key. which is 27.

$emit('keydown', { ...e, keyCode: 27 })
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda