htmx
htmx copied to clipboard
Can hx-trigger prevent the default behavior?
In my textarea, I have this:
hx-trigger="keydown[ctrlKey && keyCode==13]"
This works to trigger on CTRL-Enter. However, it doesn't prevent the default behavior of adding a carriage return.
Can that be prevented?