# Multiline input that works with shift+enter and enter to send.

**URL:** <https://community.weweb.io/t/multiline-input-that-works-with-shift-enter-and-enter-to-send/17973>\
**Category:** Ask us anything\
**Created:** [April 27, 2025, 1:43pm UTC](https://community.weweb.io/t/multiline-input-that-works-with-shift-enter-and-enter-to-send/17973 "2025-04-27T13:43:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pvmattos](https://avatars.discourse-cdn.com/v4/letter/p/f14d63/32.png) [@pvmattos](https://community.weweb.io/u/pvmattos)\
**Post date:** [April 27, 2025, 1:43pm UTC](https://community.weweb.io/t/multiline-input-that-works-with-shift-enter-and-enter-to-send/17973/1 "2025-04-27T13:43:18Z")

</div>

I have a chat service where I would like the text input to work like on WhatsApp web, shift+enter to skip a line and enter to send.  
The problem is that when I add the action to enter, even with shift pressed, it sends the message, when the expected behavior would be to skip the line.

Has anyone experienced this?

---

<div class="post-metadata">

**Author:** ![JithuJoy](https://avatars.discourse-cdn.com/v4/letter/j/e47774/32.png) [@JithuJoy](https://community.weweb.io/u/JithuJoy)\
**Post date:** [May 28, 2025, 12:10am UTC](https://community.weweb.io/t/multiline-input-that-works-with-shift-enter-and-enter-to-send/17973/2 "2025-05-28T00:10:42Z")

</div>

Yes Im having the same issue. I have tried multiple ways. It was working before and for the last few weeks it stopped working. I have a code with custom javascript to check if the shift key is pressed and to do nothing. I have also tried the AI editor within weweb all to no avail
