0
\$\begingroup\$

When im click my SelectBox and press some key, nothing happens.

sbNationality.addListener(new ClickListener() { 
    @Override
    public boolean keyTyped(InputEvent event, char character) {
        System.out.println(character);
        return super.keyTyped(event, character);
    }
});

Im doing something wrong?

\$\endgroup\$
2
  • \$\begingroup\$ I see that you posted this question using an unregistered account, and then used a different account to try to reply to the answer below by editing it. A better bet is to sign in using the account that originally created this question - then you'll be able to reply via comments. More information on logging into or registering an unregistered account can be found here \$\endgroup\$
    – DMGregory
    Commented Jan 9, 2016 at 22:24
  • \$\begingroup\$ I have updated my answer. \$\endgroup\$
    – Vaillancourt
    Commented Jan 10, 2016 at 5:51

1 Answer 1

1
\$\begingroup\$

According to the documentation (SelectBox.addListener), this element seems to reacting only to 'touch' and 'click' related events, not to keyboard related events.

Perhaps you could try and use the stage events instead.

\$\endgroup\$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .