some-airline-73512
02/26/2023, 12:15 PMenough-petabyte-50314
02/26/2023, 5:42 PMenough-petabyte-50314
02/26/2023, 5:43 PMgorgeous-airport-54386
02/26/2023, 5:44 PMenough-petabyte-50314
02/26/2023, 6:01 PMenough-petabyte-50314
02/26/2023, 6:02 PMgorgeous-airport-54386
02/26/2023, 6:03 PMsome-airline-73512
02/26/2023, 7:14 PMenough-petabyte-50314
02/26/2023, 7:22 PMbland-coat-6833
02/26/2023, 7:29 PMsome-airline-73512
02/26/2023, 7:56 PMbland-coat-6833
02/26/2023, 8:06 PMfreezing-waitress-26396
02/26/2023, 8:27 PMabundant-dog-96915
02/26/2023, 9:46 PMadventurous-ocean-93733
02/26/2023, 9:58 PMfrom:
modifier using a css selector for the inputs?adventurous-ocean-93733
02/26/2023, 9:58 PMadventurous-ocean-93733
02/26/2023, 10:03 PMmysterious-toddler-20573
02/26/2023, 10:38 PMmonitorEvents()
in chrome to see where the changed
event is coming from. Maybe you can use throttle or an event filter to pick out the one you are interested in. Overall, your approach sounds right to me.some-airline-73512
02/26/2023, 11:22 PMmagnificent-camera-86904
02/27/2023, 6:02 AMsome-airline-73512
02/27/2023, 9:07 AMHX-Trigger-After-Swap
is what you want. https://htmx.org/headers/hx-trigger/icy-restaurant-44243
02/27/2023, 11:27 AMadventurous-ocean-93733
02/27/2023, 1:40 PM<script>htmx.logAll()</script>
in your page and then use something like Safari Web Inspector (connecting via your desktop machine). Been a while since I’ve done this but these instructions look familiar https://www.idownloadblog.com/2019/06/21/how-to-use-safari-web-inspector-ios-mac/icy-restaurant-44243
02/27/2023, 2:15 PMicy-restaurant-44243
02/27/2023, 2:15 PMicy-restaurant-44243
02/27/2023, 7:40 PMmagnificent-camera-86904
02/28/2023, 4:21 AMjs
node.addEventListener("keyup", ({key}) => {
if (key === "Enter") {
this.onSendButton(chatBox)
}
})
I found examples like hx-trigger="keyup changed delay:500ms"
in the docs, but I don't see anything on listening to specific keys.gorgeous-ghost-95789
02/28/2023, 4:23 AMhx-trigger="keyup[key==Enter]"
gorgeous-ghost-95789
02/28/2023, 4:24 AM==
because it's using JS syntax for the evaluation.magnificent-camera-86904
02/28/2023, 4:50 AM