|
Re: Key Bindings in RAP [message #895071 is a reply to message #895055] |
Wed, 11 July 2012 15:18 |
Ivan Furnadjiev Messages: 2429 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 |
Tim Buschtoens 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 |
Tim Buschtoens 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/
|
|
|
Powered by
FUDForum. Page generated in 0.04088 seconds