Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Keyboard shortcuts
Keyboard shortcuts [message #560312] Tue, 21 September 2010 16:05 Go to next message
Bogdan B. is currently offline Bogdan B.Friend
Messages: 50
Registered: July 2009
Member
Is there somewhere specified if there is the possibility in RAP to override the browser shortcut keys?
For example:
- F1 when editor focused - should open the context help of the editor
- Ctrl + S in editor - should save the editor
and so on.
Re: Keyboard shortcuts [message #563590 is a reply to message #560312] Tue, 21 September 2010 16:14 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2427
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Bogdan,
we are working on keybindings support in RAP. See bug:
282449: Keybindings in RAP
https://bugs.eclipse.org/bugs/show_bug.cgi?id=282449
I hope that it will be available in 1.4M3.
F1 should work in RAP and triggers the helpListener.
HTH,
Ivan


On 09/21/2010 7:06 PM, Bogdan B. wrote:
> Is there somewhere specified if there is the possibility in RAP to
> override the browser shortcut keys?
> For example:
> - F1 when editor focused - should open the context help of the editor
> - Ctrl + S in editor - should save the editor
> and so on.
Re: Keyboard shortcuts [message #625605 is a reply to message #563590] Wed, 22 September 2010 09:33 Go to previous messageGo to next message
Bogdan B. is currently offline Bogdan B.Friend
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?
Re: Keyboard shortcuts [message #625651 is a reply to message #560312] Wed, 22 September 2010 09:57 Go to previous messageGo to next message
Bogdan B. is currently offline Bogdan B.Friend
Messages: 50
Registered: July 2009
Member
More:
- when an editor page is focused, F1 does not open its context help in RAP, but does it in SWT/RCP. The help context id was added to the Composite obtained by: FormPage.getManagedForm().getForm().getBody()
Re: Keyboard shortcuts [message #625938 is a reply to message #625651] Wed, 22 September 2010 11:08 Go to previous message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2427
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Bogdan,
if your code works in RCP, but not in RAP it's probably a bug. Feel free
to file a bugzilla with a snippet to reproduce it.
Thanks,
Ivan

On 09/22/2010 12:57 PM, Bogdan B. wrote:
> More:
> - when an editor page is focused, F1 does not open its context help in
> RAP, but does it in SWT/RCP. The help context id was added to the
> Composite obtained by: FormPage.getManagedForm().getForm().getBody()
>
Previous Topic:Font size different in RCP and RAP (RAP 1.3)
Next Topic:Keyboard shortcuts
Goto Forum:
  


Current Time: Sun Oct 06 20:54:36 GMT 2024

Powered by FUDForum. Page generated in 0.03639 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top