| keybindings and mouse events with a browser widget [message #991210] |
Mon, 17 December 2012 13:52  |
hanspeter hofer Messages: 4 Registered: December 2012 |
Junior Member |
|
|
I created a custom editor widget containing a browser widget. The problem is that I can't figure out how to get mouse or keydown events to the workbench. I want to be able to bind the save-funktion of the editor to a keydown event.
I tried to use the org.eclipse.ui.binding extension point
problem: it does not work if I have the focus on the browser widget.
I tried BrowserFunctions
problem: to save the content I have to call another BrowserFunction to fetch the content of the editor. It seems that it's not possible to call a BrowserFunction in another BrowserFunction.
I thought of firing an event via qooxdoo to force the workbench to save the open file via the command org.eclipse.ui.file.save, but I'm not sure how to do it. I can't access the the rap functions, because the browser widget is encapsulated by an iframe.
Another Problem which may be related to the iframe is the fact that the workbench doesn't receive clicks on the iframe(browser widget). For example if I create a menu via a BrowserFunction the menu does not close until I click an the menu or outside the iframe.
I would be very happy if someone could show me a solution.
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02037 seconds