htmx icon indicating copy to clipboard operation
htmx copied to clipboard

Can hx-trigger prevent the default behavior?

Open deanebarker opened this issue 3 years ago • 0 comments

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?

deanebarker avatar Sep 02 '22 19:09 deanebarker