Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Unexpected return value for KeyUpEvent.getKeyName

    We are seeing unexpected results for the method KeyUpEvent.getKeyName().
    For instance, with below code:

    TextItem txt = new TextItem();
    txt.addKeyUpHandler(new KeyUpHandler() {

    public void onKeyUp(final KeyUpEvent event) {
    String keyName = event.getKeyName();
    log("KeyUpEvent.keyName()=" + keyName);
    }
    });


    This works well for normal characters, enter, delete etc.
    But since Firefox15, when pressing ù on azerty, this returns "Alt"
    Also, when pressing µ, this returns "$i9"
    Pressing ^ returns "Shift"
    Pressing $ gives "Alt"
    The list goes on, with ) and - returning null
    < returning ,

    We have found though that only since Firefox 15 the ù returns Alt, which is the most pressing problem for us.

    Can this be looking into please?

    (SNAPSHOT_v8.3d_2012-10-11/Pro Deployment (built 2012-10-11)

    #2
    Interesting. It sounds like the azerty keyboard layout is reporting different keyCode values from those we make use of for the US-querty layout, at least for this browser.

    You can probably resolve this issue within your application by looking at the result of EventHandler.getKeyEventCharacter() / EventHandler.getKeyEventCharacterValue() - the expectation would be that these will be null for a true modifier keypress (alt, shift etc), but will have the correct value for meaningful character keys.

    This should allow you to get your app working correctly and we will assign a developer to look into how best to address this issue at the framework level

    Regards
    Isomorphic Software

    Comment


      #3
      Thanks, looking forward to your final solution.

      best regards

      Comment

      Working...
      X