Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Key Bindings (RAP/FAQ)
Key Bindings (RAP/FAQ) [message #662393] Wed, 30 March 2011 14:05 Go to next message
Stephan Leicht Vogt is currently offline Stephan Leicht Vogt
Messages: 102
Registered: February 2010
Location: Baden Switzerland
Senior Member

In the wiki you describe how to add / inject a key-listener as jscript to the client. How can I remove this key-listener?

If I remove the PhaseListener the call to the server will not be executed further, but the client will call the server with every "correct" keystroke, right?
Re: Key Bindings (RAP/FAQ) [message #662866 is a reply to message #662393] Fri, 01 April 2011 09:19 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf Sternberg
Messages: 1290
Registered: July 2009
Senior Member

Hi Stephan,

The JavaScript code is just written to the client once. To unregister the
keybindings, you'd have to remove the event listener from the document
with another JavaScript snippet. However, with the fix for bug 282449
[1], it is now possible to register workbench key bindings using the
standard extension points.

If you want to register key bindings in plain RWT, i.e. without using the
workbench, there will also be an easier way in the next milestone (M7).
The details are still under discussion.

Which version of RAP do you use? Is waiting for the next milestone an
option for you?

Best regards, Ralf
--
Ralf Sternberg

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Key Bindings (RAP/FAQ) [message #662885 is a reply to message #662866] Fri, 01 April 2011 11:34 Go to previous message
Stephan Leicht Vogt is currently offline Stephan Leicht Vogt
Messages: 102
Registered: February 2010
Location: Baden Switzerland
Senior Member

Hi Ralf

Thats good news. Though using the workbench key bindings is not an option for me. I'll wait for the next milestone (M7). (I'm using RAP version 1.4 M6).

Thanks and greetings
Stephan Leicht
Previous Topic:Language of Messages, Warnings, etc. ?
Next Topic:limiting context menu (popup) item visibility in ViewPart
Goto Forum:
  


Current Time: Fri Sep 19 08:09:02 GMT 2014

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

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