• Home
  • Recent Q&A
  • Java
  • Cloud
  • JavaScript
  • Python
  • SQL
  • PHP
  • HTML
  • C++
  • Data Science
  • DBMS
  • Devops
  • Hadoop
  • Machine Learning
in Vue.JS by
Q:

What are the supported System Modifier Keys?

1 Answer

0 votes
by

Vue supports below modifiers to trigger mouse or keyboard event listeners when the corresponding key is pressed,

  1. .ctrl
  2. .alt
  3. .shift
  4. .meta

Lets take an example of control modifier with click event,

<!-- Ctrl + Click -->
<div @click.ctrl="doSomething">Do something</div>

Related questions

0 votes
asked Oct 21, 2019 in Vue.JS by Tate
0 votes
asked Oct 21, 2019 in Vue.JS by Tate
...