add mnemonic to Buttons in the Toolbar

is this possible in a way ?

buttons on the toolbar dont show names so what mnemoic do you want to target?

Thank you Johan and sorry, I think I see to less behind the system between names and mnemonics, to answer your question.

I have old clients, since dBase4 the can skip records forward/backward with the arrow-keys.
I just try to give them some same, old opportunity, to convince them for the new technology-Release.

As I understood, the standard-buttons only accept some alt-mnemonics and I was just searching
around for an alternative.

regards

try alt-down or alt-up

stefanoni:
I have old clients, since dBase4 the can skip records forward/backward with the arrow-keys.

We implement this using ctrl-up/down.

In the startup method of the solution we use:

plugins.window.createShortcut('control DOWN', globals.handleShortcuts);
plugins.window.createShortcut('control UP', globals.handleShortcuts);

the global method ‘handleShortcuts’ takes care of the real action:

function handleShortcuts(event)
{
	if(event.getType() == 'control DOWN' || event.getType() == 'control UP')
	{
		var $value = /DOWN/.test(event.getType()) ? 1 : -1;
		var $index = globals.currentcontroller.getSelectedIndex();
		if(!$index) return;
		
		globals.currentcontroller.setSelectedIndex($index + $value);
	}
}

Thank you Johan, Marc, it works,
and I’m very happy about this little, clear example.