I've been trying to implement a custom <textarea>
behavior wherein the enter
event will fire a function and the ctrl+enter
will trigger a newline on the <textarea>
.
I've been trying to read through existing questions here, but most of them are using plunker and oddly enough i can't load them properly.
I've managed to make enter
key submit something instead of doing a next line. However, when i do ctrl-enter
keydown event, i can't seem to make textarea go to next line.
See this blitzstack for the sample.