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

293
Views
'KeyboardEvent.keyCode' modifier on 'v-on' directive is deprecated. Using 'KeyboardEvent.key' instead in vue

I am migrating my application vue 2 to vue 3. While running the application, i am getting some deprecation error.

In my keyboard event modifier, i was using numbers and key for keyboard event. But, this concept is deprecated so i am getting errors. I am not sure how to use it now?

Previously

 @keyup.ctrl.86="onUpdateEvent()"

I am getting error because of using numbers. How to resolve those?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can find this in the docs: https://v3.vuejs.org/guide/migration/keycode-modifiers.html#_3-x-syntax

It looks like you should be using the kebab-case name of the key rather than a numeric keycode, so you would use @keyup.ctrl.v in this case.

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!