Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Browser Context Menu and Selectable Content
Browser Context Menu and Selectable Content [message #1042416] Tue, 16 April 2013 08:03 Go to next message
Sebastien Arod is currently offline Sebastien Arod
Messages: 34
Registered: July 2009
Member
Hi,

RWT suppresses the Browser Context Menu and prevents user to select the content of most widgets. This is fine for most application and it totally makes sense to allow usage of RWT defined Context Menus and right click events management.

However when application does not rely on right click events it would be nice to have a way to reenable default browser behaviour. This would allow user to use the services provided by his browser like the "Search in google <selected-text>" action in Firefox or even some actions provided by a browser plug-in like. It would also allow to copy and paste the content of a whole form. Basically it would make the application feel like a more "standard" web application.

So my question is: is there a way to disable right click events capture and to reenable user selectable content for a whole EntryPoint or for some widgets?


Regards,
-Seb
Re: Browser Context Menu and Selectable Content [message #1046695 is a reply to message #1042416] Mon, 22 April 2013 04:42 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf Sternberg
Messages: 1290
Registered: July 2009
Senior Member

Hi Sebastien,

The reason behind unselectable content is compatibility with SWT, which
doesn't allow to select and copy text except in a text field. Moreover,
if content was selectable, it would automatically be selected on double
click.

However, I agree that selectable content and context menu would make RAP
application more web-like. We already show the browser context menu in
Text fields that do not specify their own context menu. Maybe there are
similar ways for other widgets and for selectable text. Feel free to
open an enhancement request.

Regards, Ralf

--
Ralf Sternberg

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

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Browser Context Menu and Selectable Content [message #1046714 is a reply to message #1046695] Mon, 22 April 2013 05:06 Go to previous message
Sebastien Arod is currently offline Sebastien Arod
Messages: 34
Registered: July 2009
Member
Hi Ralph,

Thanks for the answer I created enhancement 406199.


Regards,
-Seb
Previous Topic:How to restore UISession?
Next Topic:Different errors occurs in firefox and chrome when I close my custom widget
Goto Forum:
  


Current Time: Mon Jul 28 08:30:27 EDT 2014

Powered by FUDForum. Page generated in 0.01609 seconds