Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

99
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!