2 Replies Latest reply on Apr 23, 2011 6:34 AM by huangxinghui

    Contorl Paste commands not function

    huangxinghui Level 1

      use textInput set displayAsPassword=true, how to control the Paste commands and keyboard shortcuts does not work

       

      Thanks

        • 1. Re: Contorl Paste commands not function
          Jason Szeto Level 3

          The Cut and Paste commands are disabled when displayAsPassword = true. Here is an explanation from the ASDocs for TextInput.displayAsPassword:

           

          Specifies whether the text field is a password text field. If the value of this property is true,      the text field is treated as a password text field and hides the input characters using asterisks instead of the      actual characters. If false, the text field is not treated as a password text field. When password mode      is enabled, the Cut and Copy commands and their corresponding keyboard shortcuts will      not function.  This security mechanism prevents an unscrupulous user from using the shortcuts to discover      a password on an unattended computer.

          The default value is false.

           

          Jason Szeto

          Flex SDK Engineer

          • 2. Re: Contorl Paste commands not function
            huangxinghui Level 1

            Thanks for your reply.

             

            i do not explain in detail.

             

            the problem is when i copy words outside then paste them into the textInput,

            how to control this not function

             

            because sometimes the password can not paste words