Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to hook a key event in editor page
How to hook a key event in editor page [message #436548] Tue, 13 September 2005 07:25 Go to next message
Ravshan Kosimov is currently offline Ravshan KosimovFriend
Messages: 41
Registered: July 2009
Member
Hi, all!

How to hook a key event in editor page?
For example: I have an editor with ~25-30 widgets on it.
I need to do something on key event, independent of where focus have been. At this time I create ~25-30 key listeners and register its on every widgets. But on FormEditor's not only widgets may have a focus, accordingly key event not hooks every time.

Can I register global listener for whole editor, which will be working on all editor page, independent of where focus is?

ps: sorry for my bad English.
Re: How to hook a key event in editor page [message #436609 is a reply to message #436548] Tue, 13 September 2005 22:55 Go to previous messageGo to next message
Haris Peco is currently offline Haris PecoFriend
Messages: 1072
Registered: July 2009
Senior Member
Ravshan Kosimov wrote:

> Hi, all!
>
> How to hook a key event in editor page?
> For example: I have an editor with ~25-30 widgets on it.
> I need to do something on key event, independent of where focus have been.
> At this time I create ~25-30 key listeners and register its on every
> widgets. But on FormEditor's not only widgets may have a focus,
> accordingly key event not hooks every time.
>
> Can I register global listener for whole editor, which will be working on
> all editor page, independent of where focus is?
>
> ps: sorry for my bad English.

try Display.addFilter(...), but it work for complete workbench (all editors
and views)
Re: How to hook a key event in editor page [message #436659 is a reply to message #436609] Wed, 14 September 2005 11:18 Go to previous message
Ravshan Kosimov is currently offline Ravshan KosimovFriend
Messages: 41
Registered: July 2009
Member
Tnx
Previous Topic:exporting rcp with 3rd party jar libraries
Next Topic:new problem exporting with 3rd party jars
Goto Forum:
  


Current Time: Wed Dec 04 16:12:19 GMT 2024

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

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

Back to the top