In my web application, I need a shortcut ctrl+x to hate the same behavior as ctrl+c when some text in
paragraph is selected (selection is not in textarea or text input). I need solution without use of Flash.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
First of all you have to prevent the default action on the cut-event. You can do this the following code:
Most browsers prevent control of the clipboard. Although I know the following jQuery-plugin exists that gives you a bit of control of it: zeroclipboard
Note: You must use the Flash add-in you do not want to use to automatically copy text to the client’s clipboard. A website automatically modifying the client’s clipboard without the aid of active-x components is a security concern.