Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6191897

TextField responds to 'CTRL+RIGHT ARROW' keys incorrectly when echo char is set, XToolkit

XMLWordPrintable

    • b55
    • sparc
    • solaris_9
    • Verified

      I have a text field with echo char set. I am typing 3 words of text - Say 'AWT is COOL'. Now when I press 'CTRL + RIGHT / LEFT ARROW', on XToolkit, the cursor moves word by word thus indicating some information to the user such as how many words are present in the text. This operation makes sense for a normal text field but when an Echo char is set, text field should not reveal such informations about the actual text to user and such information could be potentially risky when this field is a password field.

      This is reproducible only on XToolkit. Reproducible with Tiger as well as Mustang. On Motif and Win32, pressing 'CTRL + RIGHT ARROW' moves the cursor to the end of the textfield which I think is the right behavior. Hence this is an incompatibility introduced in XToolkit.

      I have attached a sample test. Execute the sample test. You would see a frame with a textfield. Enter few words of text in the textfield. Goto the begining and press 'CTRL + RIGHT ARROW'. If the cursor moves word by word, then the bug is reproduced.
      ###@###.### 2004-11-06 18:16:16 GMT
      This is reproducible on Mustang-b47 on SolarisSparc10-JDS. Make sure you enter some text with space in the text field and move the text cursor to begining of text. Press CTRL+RIGHT ARROW and you can actually count how many words are present in the text.

            osemenovsunw Oleg Semenov (Inactive)
            pmohansunw Praveen Mohan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: