Question · Vue.js course · Module 5: Events & Forms
Key modifiers
How do you handle the Enter key press in an input?
Answer options
- @key.enter="submit"
- @press.enter="submit"
- @enter="submit"
- @keyup.enter="submit"
You can check the correct answer by solving this task in the CodeWorlds game.