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

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 .