I know this is kind of an odd question, but: Inside a textarea, how can I know if the user is pressing enter (e.keycode==13) on an empty line on the keydown event?
I have to trigger a specific sync function everytime the user presses enter except if the user is just adding new lines for fun (calling the sync function in those cases, would be a terrible waste of resources).
Found a solution!