-
Is there a way to include in an hx-get the key that triggered a keyup? Something like: /key?key=a Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 4 replies
-
If you use the
|
Beta Was this translation helpful? Give feedback.
-
I was hoping to do it with an element other than an input. Essentially, an invisible text entry. so was looking at a < div > tag with a a trigger that also included from:body. Is this doable at this time with HTMX? at a minimum, I would settle for taking the input from body and insert the keyup into an input field if necessary. Thanks again. |
Beta Was this translation helpful? Give feedback.
-
Can you provide a bit more information on the usage case for this and if you have some example code for what you are trying to achieve? |
Beta Was this translation helpful? Give feedback.
-
So, my wife and daughter asked me to make a wordle equivalent for a 6 year old. I have completed it, but am now trying to make it nicer and easier to use. I did mine server side using python and fastapi. There is an input form and I would like to get rid of that if I could. right now I have the input form replace the last line of blanks with letters as they are typed into the form, but would like to get rid of the form altogether since there is only one input anyway. So if I could put an htmx trigger on the div tag of that last line and get the character that triggered it, I could do that. It's sort of like doing hot keys, but I don't want to create a trigger and server side function for each character... :) Thanks again. |
Beta Was this translation helpful? Give feedback.
So, my wife and daughter asked me to make a wordle equivalent for a 6 year old. I have completed it, but am now trying to make it nicer and easier to use. I did mine server side using python and fastapi. There is an input form and I would like to get rid of that if I could. right now I have the input form replace the last line of blanks with letters as they are typed into the form, but would like to get rid of the form altogether since there is only one input anyway. So if I could put an htmx trigger on the div tag of that last line and get the character that triggered it, I could do that. It's sort of like doing hot keys, but I don't want to create a trigger and server side function for …