I creat a shortcut with plugins.window.createShortcut(‘LEFT’, globals.handleShortcuts).
this works fine until I do just a click into a TEXT_FIELD (editable=false).
After this click (also can be on a button) the shortcut doesn’t work anymore.
Any suggestions what I’m doing wrong ?
‘LEFT’ is a valid command in a textfield to ‘walk’ through the chars.
try to use shortcuts that are never used in UI elements by default.
Oooh yes, this makes sense, thank you Marc.
But even if I click into the background of the form (not in a field) it overrides the shortcut.
That means, if I understand it right, I have no chance to give my users the opportunity to skip to the next record with the arrow keys:
- shortcut is overridet
- mnemonic on a button is just possible with alt-…
- toolbarbutton don’t accept mnemonic
regards
stefanoni:
mnemonic on a button is just possible with alt-…
or use ctrl-…
in general: avoid any conflicting key/combination as stated here: http://forum.servoy.com/viewtopic.php?f=22&t=15168#p81318