Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Key Bindings in RAP
Key Bindings in RAP [message #895055] Wed, 11 July 2012 14:50 Go to next message
Stefan Ruzitschka is currently offline Stefan RuzitschkaFriend
Messages: 16
Registered: December 2010
Junior Member
Hey Folks,

I would like to use the key binding feature in RAP 1.5 with global keys:

      display.setData(RWT.ACTIVE_KEYS, new String[] { "SHIFT+W", "SHIFT+A", "SHIFT+S", "SHIFT+D" });

      display.addFilter(SWT.KeyDown, new Listener()
      {
         @Override
         public void handleEvent(final Event event)
         {
            System.out.println(event.keyCode + "" + event.stateMask);
         }
      });


But none of the active key combinations work. It would be nice to have a list of keys oder key combinations that work.

The goal is to have 4 keys/combinations to move s.th. around. And they should be global and browser independent.

Can anyone help?

Greetings
Stefan Ruzitschka
Re: Key Bindings in RAP [message #895071 is a reply to message #895055] Wed, 11 July 2012 15:18 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Stefan,
probably the problem is in the modifier SHIFT, which triggers the
uppercase. Could you try with CTRL instead?
Best,
Ivan

On 7/11/2012 5:50 PM, Stefan Ruzitschka wrote:
> Hey Folks,
>
> I would like to use the key binding feature in RAP 1.5 with global keys:
>
>
> display.setData(RWT.ACTIVE_KEYS, new String[] { "SHIFT+W",
> "SHIFT+A", "SHIFT+S", "SHIFT+D" });
>
> display.addFilter(SWT.KeyDown, new Listener()
> {
> @Override
> public void handleEvent(final Event event)
> {
> System.out.println(event.keyCode + "" + event.stateMask);
> }
> });
>
>
> But none of the active key combinations work. It would be nice to have
> a list of keys oder key combinations that work.
>
> The goal is to have 4 keys/combinations to move s.th. around. And they
> should be global and browser independent.
>
> Can anyone help?
>
> Greetings
> Stefan Ruzitschka

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Key Bindings in RAP [message #895248 is a reply to message #895055] Thu, 12 July 2012 09:15 Go to previous messageGo to next message
Tim Buschtoens is currently offline Tim BuschtoensFriend
Messages: 396
Registered: July 2009
Senior Member
Hi.

This should definitely work. Please file a report in the RAP BugZilla.
Also, which exact Version of RAP are you using?

Greetings,
Tim

Am 11.07.2012 16:50, schrieb Stefan Ruzitschka:
> Hey Folks,
>
> I would like to use the key binding feature in RAP 1.5 with global keys:
>
>
> display.setData(RWT.ACTIVE_KEYS, new String[] { "SHIFT+W",
> "SHIFT+A", "SHIFT+S", "SHIFT+D" });
>
> display.addFilter(SWT.KeyDown, new Listener()
> {
> @Override
> public void handleEvent(final Event event)
> {
> System.out.println(event.keyCode + "" + event.stateMask);
> }
> });
>
>
> But none of the active key combinations work. It would be nice to have a
> list of keys oder key combinations that work.
>
> The goal is to have 4 keys/combinations to move s.th. around. And they
> should be global and browser independent.
>
> Can anyone help?
>
> Greetings
> Stefan Ruzitschka

--
Tim Buschtöns

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Key Bindings in RAP [message #895255 is a reply to message #895248] Thu, 12 July 2012 09:27 Go to previous message
Tim Buschtoens is currently offline Tim BuschtoensFriend
Messages: 396
Registered: July 2009
Senior Member
Wait a sec, it works fine for me.
Did you possibly forget the main loop in your application?

Greetings,
Tim

Am 12.07.2012 11:15, schrieb Tim Buschtöns:
> Hi.
>
> This should definitely work. Please file a report in the RAP BugZilla.
> Also, which exact Version of RAP are you using?
>
> Greetings,
> Tim
>
> Am 11.07.2012 16:50, schrieb Stefan Ruzitschka:
>> Hey Folks,
>>
>> I would like to use the key binding feature in RAP 1.5 with global keys:
>>
>>
>> display.setData(RWT.ACTIVE_KEYS, new String[] { "SHIFT+W",
>> "SHIFT+A", "SHIFT+S", "SHIFT+D" });
>>
>> display.addFilter(SWT.KeyDown, new Listener()
>> {
>> @Override
>> public void handleEvent(final Event event)
>> {
>> System.out.println(event.keyCode + "" + event.stateMask);
>> }
>> });
>>
>>
>> But none of the active key combinations work. It would be nice to have a
>> list of keys oder key combinations that work.
>>
>> The goal is to have 4 keys/combinations to move s.th. around. And they
>> should be global and browser independent.
>>
>> Can anyone help?
>>
>> Greetings
>> Stefan Ruzitschka
>

--
Tim Buschtöns

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:Custom error-pages with RAP and Tomcat
Next Topic:error in firefox!
Goto Forum:
  


Current Time: Fri Apr 26 09:21:04 GMT 2024

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

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

Back to the top