|
|
Re: Keyboard shortcuts [message #625605 is a reply to message #563590] |
Wed, 22 September 2010 09:33 |
Bogdan B. Messages: 50 Registered: July 2009 |
Member |
|
|
Hi Ivan,
Ivan Furnadjiev wrote on Tue, 21 September 2010 12:14 |
F1 should work in RAP and triggers the helpListener.
|
I tested the F1 and it works, but with some difference than in SWT/RCP:
For example if I extend TrayDialog overriding configureShell() as follows:
@Override
protected void configureShell(Shell shell) {
super.configureShell(shell);
PlatformUI.getWorkbench().getHelpSystem().setHelp(shell, "myContextId");
setHelpAvailable(true);
}
than a "?"-iconed help button is added to the button bar. If I press it, then the context help opens (in RAP I have contributed my Help UI by extending AbstractHelpUI)
Now if I press F1:
- in SWT/RCP: the context help opens no matter what widget contained by the TrayDialog is currently focused;
- in RAP: the context help opens ONLY if I previously focused the shell (clicked on the blue title bar of the dialog). But if I focus the containing Composite or any other widget inside it, the context help is not open.
Does this mean that in RAP I have to recursively call PlatformUI.getWorkbench().getHelpSystem().setHelp(myControl, "myContextId"); for all Controls inside my TrayDialog?
Since RCP seem to solve this automatically, shouldn't RAP also do it? Do you see this as a bug, or at least need for enhancement?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03639 seconds