|
|
|
Re: [neon] overriding browser shortcuts to be used as KeyStroke [message #1733132 is a reply to message #1732638] |
Tue, 24 May 2016 16:27 |
|
DesktopKeyStroke.js is propably not what you are looking for. This special type of a keystroke is only active when a busy indicator is visible. See javadoc at the header of the class for details.
You can define keystrokes as it was possible with the previous scout releases. If you want to trigger a button or menu, use the appropriate property on that element.
getConfiguredKeyStroke() {
return IKeyStroke.F9;
}
These keystrokes are visible when the user presses F1.
If there is no button or menu you can assign the keystroke to, just add a keystroke to your form field, group box or the desktop. If it is added to the desktop it is always available.
public class YourKeyStroke extends AbstractKeyStroke {
@Override
protected String getConfiguredKeyStroke() {
return IKeyStroke.F8;
}
@Override
protected void execAction() {
}
}
What I don't understand: You said F1 shows the browser help? This should not happen, instead the keystrokes should be shown.
Maybe it was a focus issue. Can you click into the application before pressing F1 the next time? If the focus is on a browser element like the address bar the application keystrokes don't work. Does this help?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04900 seconds