Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Submitting by Enter key (text area)

Hello everyone!

First, sorry for my bad english D:

Well, I'm trying to use the macro << textarea >> in a way that pressing the Enter key, the content is sent to the variable (instead of clicking a button). To skip lines I would like to use "shift + enter".

My programming skills are very limited, so if anyone can help me, I will be very grateful ;)

Ps: i'm using Sugarcube.


  • The <<textarea>> macro updates the associated $variable as changes are made, there's no need to press or clicking anything extra. Also, you should be able to use either Enter or Shift+Enter to add line breaks.

    TL;DR: The macro does what you want by default.
Sign In or Register to comment.