Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to override certain system key bindings
How to override certain system key bindings [message #284390] Fri, 22 April 2005 13:24
Eclipse UserFriend
Originally posted by: VaughnWi.attachmate.com

I currently have a view (although I will probably change it to an editor,
but not a text editor) that requires the use of all function keys. I'm able
to respond to most function keys, but F1, F10, and F12 cause me problems.

F12 is simplest to solve. Since by default it is bound to Activate Editor,
a simply global rebinding will work. However, I would rather not force my
users to rebind their global keys when using my plug-in.

F1 and F10 are much more difficult, since they do not seem to be part of the
regular key bindings. It's like their hard-coded or something. My
application actually gets these function keys, but I also get (for free!)
the Eclipse system behavior, which I really don't want in this case.

I thought (at least to get around the F12 problem), I would define a context
and enable it for my view. But that didn't seem to change anything. I must
not be doing it correctly. Am I right in assuming that if I define a
context and activate that context for my view, and it does not have a parent
context, that none of the keys bindings (except those that apply to that
context) would be activated?

Do I need to listen to key events at a more fundamental level to be able to
override these key bindings?

Thanks!

Vaughn
Previous Topic:Eclipse Network Install: Error, see C:\Documents
Next Topic:Headless product export
Goto Forum:
  


Current Time: Wed May 07 20:14:01 EDT 2025

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

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

Back to the top