is there anywhere info about @keypress / x-on:keypress of AlpineJS?
<body class="antialiased bg-black" x-data @keypress="console.log()">
What should I put into log() to get data which key has been pressed? I cant find anything about that in documentation. I want to send pressed key to livewire controller.
Depends on what specific key you wan't to detect but you can do something like this :
<button type="text" @keyup.enter="alert('Submitted!')">Awesome button !</button>