Hello Everyone,
I am trying to manage SHIFT+ENTER key on a multiline text box as follows.
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script type="text/javascript" src="jquery/events.js"></script>
<script>
$(document).ready(function () {
$("#TextBox1").keydown(function (event) {
if (event.which == 13 && !event.shiftKey) {
event.preventDefault();
$("#Button1").trigger("click");
} ...
Go to the complete details ...