Results 1 to 4 of 4

Thread: Should not able to copy selected text in textbox

  1. #1
    Sencha User
    Join Date
    Sep 2011
    Location
    Bangalore
    Posts
    171
    Vote Rating
    0
      0  

    Default Should not able to copy selected text in textbox

    Hi folks,

    I am using ExtJS 3.4. I have a text box with user name and password for login application. For user name textbox entered text can able to copy and also paste, but password field content is selected means not able to copy that entered text and also paste any other content. Please help me in this issue.



    Thanks in Advance
    Samarth Manjunath

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    You can add a keydown event listener to the input element and stopEvent if it's ctl+c
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Sep 2011
    Location
    Bangalore
    Posts
    171
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by mitchellsimoens View Post
    You can add a keydown event listener to the input element and stopEvent if it's ctl+c
    Hi mitchell simoens,
    keydown event listeners related to Ext.Element, Ext.form.TextField, Ext.grid.GridPanel. In this if i used keydown(Ext.form.TextField this, Ext.EventObject e) then particular key event will fire right??? Thanks for your reply.

    Thanks in advance.
    Samarth Manjunath

  4. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Vote Rating
    1272
      0  

    Default

    That's what the docs say.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •