Binding keyboard events to non-input elements in vue

input can use @ keyup.enter=XXX () to get focus. Binding other elements has no effect. Do I have to get focus?

Feb.17,2022

non-input element binding keyboard event, you need to add tabindex attribute or set contenteditable attribute to true . concrete example


non-form elements need a tabindex attribute to listen for keyboard events, such as

tabindex='1'

try @ keyup.enter.native

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e356ad-44311.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e356ad-44311.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?