pivot-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Greg Brown (JIRA)" <j...@apache.org>
Subject [jira] Created: (PIVOT-586) Alt+A in Polish locale incorrectly selects all text
Date Tue, 03 Aug 2010 20:56:16 GMT
Alt+A in Polish locale incorrectly selects all text
---------------------------------------------------

                 Key: PIVOT-586
                 URL: https://issues.apache.org/jira/browse/PIVOT-586
             Project: Pivot
          Issue Type: Bug
          Components: wtk
            Reporter: Greg Brown
             Fix For: 1.5.2, 2.0


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.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message