Change menu text Accelerator

Asked

Viewed 39 times

1

I created the following MenuItem,

MenuItem item = new MenuItem("Alterar");
KeyCodeCombination acc = 
                     new KeyCodeCombination(KeyCode.ENTER, KeyCombination.CONTROL_DOWN);
item.setAccelerator(acc);

It turns out that in the result the accelerator appears as Control+← and I’d like it to be shown Control+Enter.

How do I change the text that is displayed on the accelerator, specifically enter.

inserir a descrição da imagem aqui

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.