Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » eclipse key bindings
eclipse key bindings [message #330898] Fri, 15 August 2008 16:45 Go to next message
Eclipse UserFriend
Originally posted by: frank.hildebrandt.taskforce-it.de

Hi,

i have a 5250 terminal emulation, witch runs in a eclipse view. In this
terminal emulation the keys F1 to F12 are frequently used. When my view
with the terminal emulation is active and i press for example F1, then
eclipse opens the help view. When i press F10 eclipse activates the menu.
What i want is, that if the terminal view is active, then only my terminal
emulation shall process F1 and F10 and not eclipse. I havn`t found a way
to suppress the processing of the default actions in eclipse, when i press
F1 or F10.

I have tried it with the following code, but when i press F1 or F10 in my
view always eclipse is doing his work.

BindingService bindingService =
(BindingService)PlatformUI.getWorkbench().getService(IBindin gService.class);

bindingService.setKeyFilterEnabled(false);

Has anyone an idea how to realize this.

Thanks

Frank
Re: eclipse key bindings [message #330936 is a reply to message #330898] Mon, 18 August 2008 14:38 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Frank Hildebrandt wrote:
> Hi,
>
> i have a 5250 terminal emulation, witch runs in a eclipse view. In this
> terminal emulation the keys F1 to F12 are frequently used. When my view
> with the terminal emulation is active and i press for example F1, then
> eclipse opens the help view. When i press F10 eclipse activates the
> menu. What i want is, that if the terminal view is active, then only my
> terminal emulation shall process F1 and F10 and not eclipse. I havn`t
> found a way to suppress the processing of the default actions in
> eclipse, when i press F1 or F10.
>
> I have tried it with the following code, but when i press F1 or F10 in
> my view always eclipse is doing his work.
>
> BindingService bindingService =
> (BindingService)PlatformUI.getWorkbench().getService(IBindin gService.class);
>
>
> bindingService.setKeyFilterEnabled(false);
>
> Has anyone an idea how to realize this.

F1 and F10 (AFAIK) aren't sent to use as key events. F1 generates a
HelpEvent, and F10 will "jump" to the left most menu (like hitting ALT+F
but it won't open the menu).

You can't get F1, and I'm not sure how to disable the F10 behaviour (but
I don't think you can do that either).

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Previous Topic:Menu contributions from multiple plugins
Next Topic:Saving the state of toggle actions
Goto Forum:
  


Current Time: Thu Aug 08 14:26:00 GMT 2024

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

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

Back to the top