plugins.window.createShortcut name for / character

Hi,
I would like to add a shortcut for the key “/” but when I do this plugins.window.createShortcut(‘/’, function), it doesn’t work. what is the name that I should send as the parameter for the ‘/’ character?

Thanks

Hi,

I would expect something like plugins.window.createShortcut(‘SLASH’, scopes.globals.handleShortcut) to work.

Hope this helps,
Andrei

i tried that word but it doesnt work

fgsmartest:
i tried that word but it doesnt work

What version of Servoy are you trying this in?
To me it works fine in 6.1.2.

Regards,
Andrei

Works for me too.

does anyone know where i can find a list of shortcuts accepted by the plugin? I am searching for a list of the names they accept for the keyboard keys…particularly home, end,+,-,x, etc

thanks guys

Also the the slash works on the regular side of the keyboard, but doesn’t on the numeric keyboard. any help with that?

fgsmartest:
Also the the slash works on the regular side of the keyboard, but doesn’t on the numeric keyboard. any help with that?

That is a different key with a different key code, “DIVIDE” if I remember correctly.

fgsmartest:
does anyone know where i can find a list of shortcuts accepted by the plugin?

This is the best list I can find with a quick google search: KeyEvent (Java Platform SE 6).

In the “Field summary”, all the ones starting with “VK_”, but then get rid of the “VK_” when using them on the plugin, so “VK_PLUS” → plugins.window.createShortcut(“PLUS”, function)

thank you sooo much! some of them working so far.