I solved it my self. As Chrome always returns \r\n
whether we press ENTER
or SHIFT+ENTER
. I did a trick based on my requirement.
I was in need to place a special Unicode character when User press SHIFT+ENTER
and to achieve this I used below code:
jQuery(txtInputControl).val(contentOfInputControl.substring(0,caretPositionOfCursor) + String.fromCharCode(172) + contentOfInputControl.substring(caretPositionOfCursor,contentOfInputControl.length));
Means that I place a Unicode special character in middle of a content where User has pressed SHIFT+ENTER
. Also handling it a Server Side too. So that I can keep track from both side.