eclipse key bindings [message #330898] |
Fri, 15 August 2008 16:45  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03260 seconds