I Am Building A Chat System, Need Submit By Enter and Shift + Enter Next Line

I have textarea input field I want to be able to trigger event when Enter pressed and Go to next line if Shift+Enter pressed. How can I detect this on input field?

You could try something like:

on shift+enter we set the value of the text area to the current value + a new line.

Thanks for reaching out, @Bilal_Asad! I agree with @bobthebear that custom keyboard shortcuts are probably your best option.