How to disable copy/paste on TextInput

Hi,
I'd like to disable copy/paste on textinput. It's possible ?
I tried with preventDefault() on KeyBoardEvent but it doesn't work.
Thanks  in advance.

Hi Christian
await MiniBrowser.InvokeScriptAsync("eval", new string[] { "function (e) {e.returnValue = false;} if (document.body.addEventListener){ document.body.addEventListener('onselectstart',yourHandler,false);} else {document.body.attachEvent('onselectedstart',yourHandler);//for IE} function yourHandler(e){e = e || window.event; var target = e.target || e.srcElement; YOUR LOGIC HERE}"});
It's throw the same error.

Similar Messages

  • How to disable Copy/Paste to a field in Siebel 7.8

    Hi Gurus,
    Is there a way to disable paste into a certain field in Siebel 7.8?There is a way to do that in normal HTML but is it possible in Siebel.

    One option that comes to mind is to intercept the HTML that is generated for the field on the applet and append to it with the HTML/Javascript that would prevent the pasting.
    For example on the login applet we put some code in capture the enter key since it did not work out of the box.
         if (ControlName == "Password" && Property == "FormattedHtml")
              //onkeypress='JavaScript:null'
              var iOnKeyPressLoc = HTML.indexOf("onkeypress='JavaScript:null'");
              if (iOnKeyPressLoc > 0)
                   //.... REMOVED FOR DISPLAY ....               
                   HTML = sLeftHTML + " " + sMidHTML + " " + sRightHTML;
         }

  • How do I disable copy/paste for most (but not all) of a .pdf?

    Hello, I'm trying to create a .pdf document that is a "how-to" guide.  I'd like to disable copy/pasting from 95% of this document, with the exception of a few sections that i'd like my users to be able to copy and paste and use as email templates.  I've gone ahead and set pasword security settings and un-checked the box for "enable copying of text, images, and other content".  Is there any way that I can enable copy/paste for just a few small sections of my document?  or is it an "all or none" function?
    Thanks in advance for your help.  -Geoff

    Graffiti, Can you please expand on that?  I'm using Microsoft Word as my original document.   I'll have mostly paragraphs of non-copyable text, with a few sections that contain sample email templates that will be copyable.  Example below.  Thanks, Geoff
    Here is my description of an amazing new process written in Word.  To use this process, copy the email template below and customize with your own name.
    Email Template
    Dear John,
    Copy this email and send it with your own name.
    Thanks,
    Geoff
    More non-copyable text.

  • Registration Applications - Emai and Repeat Email - Disable Copy&Paste

    Hi,
    The standard behavior of Emai and Repeat Email field of Registration Applications allows Copy&Paste.
    I would expect to have standard behavior to not allow Copy&Paste otherwise 'Repeat' don't make sense. May i know the reason behind standard behavior Copy&Paste options for the Email fields?
    Can I disable Copy&Paste of the Email field by enhancement, if yes, how?
    ...Naddy

    Reposted with an additional quation Web Dynpro ABAP section...
    http://scn.sap.com/thread/3226810
    ...Naddy

  • How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values?

    How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values? I'm using the Integrator named "Projects - Transaction Import" and a custom Layout created based on the seeded Layout named "Transaction Import - Accounted". Do I need to somehow change my Layout to make the Document accept numerical values instead of requiring alpha-numeric values? I need to be able to populate the Document with a large amount of transactions and cannot feasibly go through every transaction to add the alpha-valued name of the account segment to every segment that requires it. The segments in particular causing the problem are "Expnd Type" and "Organization Name" which are both alpha-numeric and as such contain the segment number and name; I need to be able to only have to enter the Natural Account Number (6-digit number only) and the Organization Number (5-digit number only).

    How do I copy/paste full numerical-only account strings into the Projects WebADI template when the account segment fields in the template require use of the dropdown because they're formatted as alpha-numeric values? I'm using the Integrator named "Projects - Transaction Import" and a custom Layout created based on the seeded Layout named "Transaction Import - Accounted". Do I need to somehow change my Layout to make the Document accept numerical values instead of requiring alpha-numeric values? I need to be able to populate the Document with a large amount of transactions and cannot feasibly go through every transaction to add the alpha-valued name of the account segment to every segment that requires it. The segments in particular causing the problem are "Expnd Type" and "Organization Name" which are both alpha-numeric and as such contain the segment number and name; I need to be able to only have to enter the Natural Account Number (6-digit number only) and the Organization Number (5-digit number only).

  • How can I copy/paste without copying the formatting?

    How can I copy/paste without copying the formatting? For example, if I copy a sentence from a website and paste it on text editing program, it copies all the formatting as well. How can I turn that off?

    There is an app called "No Formatting" in the App Store. It is simple and works perfectly - it strips formatting from paste (Ctr-V). I needed it for Word and Excel, which don't have keyboard shortcuts for this. It can be toggled on and off from the Menu Bar.

  • How can i Copy paste from e-mail to Notebook or textbook

    How can i Copy pasta from some Content of e-mail to the notepad or textbook or word?

    hold your finger down in the body of the mail - the part you want to copy. a blue box will comeup and offer to 'select/select all' or something like that. choose the appropriate choice. If you only want part of it that bubble will have two handles that allow you to drag out the selection box.
    then hold your finger down again and another bubble will come up offering to cut/copy the words. choose copy
    then navigate to your notes app (not sure about the textbook, depends on whether or not it support it) and hold your finger down in an empty text area. you'll get another blue bubble offering to paste it. choose that and the words should appear. then save as appropriate.

  • How do I copy & paste from an email to another web site?

    How do I copy & paste from an email to another web site?

    Hello, not quite sure what it is you want to do.
    In Mail you can copy something by highlighting it & CMD+c, or Mail>Edit>Copy, but whether you can paste it to a website, not sure, but you could say paste in in a Reply here...
    Re: Grey Screen with spinning gear
    reply from duwatucan in Mac mini - View the full discussion
    Congratulations, your post has solved duwatucan's question.
    Learn more about the Apple Support Communities Reputation System
    Did this help? Go to the message, sign in, and reply
    Start a new discussion in the same community

  • How can I copy&paste a keyframe?

    How can I copy&paste a keyframe?
    Imagine : I decide, after having animated a scene, to freeze un object for a few seconds.
    I can, of course, create a new keyframe and digit the same size and position (but it takes a while).
    isn't there a simpler way : copy&paste a keyframe?
    Message was edited by: martinirosso

    I know there is an online help... if you don't know the answer to my question just say it
    That's the second time you've posted the same comment without actually contributing anything to your multiple threads. If you are incapable of following instructions, just say so. Meantime, see page 541.
    bogiesan

  • How can i copy,paste an Object ?

    How can i copy,paste an Object which i define by myself?

    implements Cloneable and define a clone method, for example
    public class ObjectA  implements Cloneable {
       // Data member
       String data;
       public ObjectA() {
       public void setData(String data) {
          this.data = data;
       public Object clone() {
           ObjectA tempObject = new ObjectA();
           tempObject.setData(this.data);
           return tempObject;
    }

  • How do you copy & paste a shape that is part of a "combined shape" to a new layer?

    How do you copy & paste a shape that is part of a "combined shape" to a new layer? For instance, I have a combined shape of 2 rectangles (not merged) and I want a copy of one of those rectangles as a new shape layer. I know I can duplicate the entire layer and delete the shape(s) I don't need - but I was wondering if there was an easier, more straightforward solution.

    Hi,
    What version of photoshop are you using?
    In photoshop cs6/cc you could use the Path Selection Tool to select one of the paths and then Layer via Copy
    (Ctrl+J or Cmd+J)

  • How to disable copy and paste from Mail to other applications

    Are there MDM or policy that can limit copy and paste?  Using MDM or ACU to lockdown the phone would be completely useless in regards to preventing data leakage unless copy/paste can be controlled.  MDM provider is advising that there is no API from Apple to allow locking this function.

    No. Not that I'm aware of. If you're that worried about people being able to copy and paste from email messages and having confidential data get 'into the wild' that way, then maybe you shouldn't be issuing or permitting the use of smart phones.

  • Disabling copy paste screenshot function from webdypro output

    Hi,
    I am working on a webdynpro application. I have used formatted text view element the outout view. The requirement is when this text is displayed in output it should not be copied pasted nor screenshot can be taken for security reason.
    This means when I execute the program and the text gets diesplayed in Internet Explorer copy paste function should be disable.
    Printscreen option should also be disabled.
    Waiting for your response.
    Regards,
    Abhishek

    I don't believe that anyone ever said that you could disable cut and paste.  This too is a function of the browser interacting with the OS.  There is nothing that you can do from Web Dynpro to effect that.
    I did a google search to how to avoid cut and paste in the browser.  Even with full control over javascript and the HTML rendering (which you don't have in Web Dynpro) this is very difficult to do.  Some suggestion are to use a CSS with a transparent image overlay or to render an image with the text.  Even some of these approaches can be worked around by someone persistent enough - by viewing source for instance. 
    Also avoiding the screenshot is pretty much impossible and certainly isn't the responsibility of the application.

  • How do you copy paste a thumbnail from one file to another in Mavericks

    I used to be able to do a copy/paste and duplicate in the thumbnails...how do I do now in Maverick?

    In the Pages and Numbers applications, the thumbnail view of my document no longer allows me to re-arrange, duplicate or otherwise edit the thumbnails. The fact that I can't right click on the thumbnails to manage the pages are one thing, but the fact that I can't even drag and drop the order of pages is unbelievable. Suggestions?

  • How do I copy, paste Word document into Adobe Reader PDF?

    A client is not using Microsoft Word, but typing text for my edits into Adobe PDF. Too many edits, too cumbersome for me. After converting PDF to Word, I edit using various ink colors. How can I copy, cut, paste edited WORD document into her PDF? Other than by using "paper clip" or "attachment" features?

    Thanks, graffiti...So, can't copy, paste Word document into PDF?
    What is the "full version" of Adobe vs my Adobe Reader? Adobe Acrobat?
    I do have a cloud, but doesn't help with my editing problem.

Maybe you are looking for