Pivot
  1. Pivot
  2. PIVOT-586

Alt+A in Polish locale incorrectly selects all text

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.5.2, 2.0
    • Component/s: wtk
    • Labels:
      None

      Description

      Right Alt+A (Alt Gr) is a key which simulates Ctrl+Left Alt (see history section in http://en.wikipedia.org/wiki/AltGr_key). This causes all text to be selected when the Polish special character "ą" is entered.

      TerraTextInputSkin defines "select all" as <command key>+A:

      ...
      } else if (keyCode == Keyboard.KeyCode.A
      && Keyboard.isPressed(commandModifier)) {
      ...

      On Windows, the command key is Ctrl. The isPressed() method uses a bitmask, so it returns true for the Ctrl+Left Alt case which Alt Gr generates. It should instead check if CTRL is the only modifier pressed at the moment.

        Activity

        Greg Brown created issue -
        Hide
        Chris Bartlett added a comment -

        Replicated the issue using

        • Windows XP x64
        • Sun JRE 1.6.0_19-b04,
        • Polish Programmers keyboard layout
        • Pivot 1.5 Kitchen Sink (TextInput)
        Show
        Chris Bartlett added a comment - Replicated the issue using Windows XP x64 Sun JRE 1.6.0_19-b04, Polish Programmers keyboard layout Pivot 1.5 Kitchen Sink (TextInput)
        Greg Brown made changes -
        Field Original Value New Value
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Hide
        Greg Brown added a comment -

        This has been resolved for Pivot 1.5.x and Pivot 2.0. When the right-Alt (Alt-Graphics) key is pressed, the Ctrl key modifier is not set.

        Show
        Greg Brown added a comment - This has been resolved for Pivot 1.5.x and Pivot 2.0. When the right-Alt (Alt-Graphics) key is pressed, the Ctrl key modifier is not set.

          People

          • Assignee:
            Unassigned
            Reporter:
            Greg Brown
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development