Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Getting Key Bindings to work with Text Widget in Coolbar
Getting Key Bindings to work with Text Widget in Coolbar [message #328142] Thu, 15 May 2008 10:19 Go to next message
James Willans is currently offline James WillansFriend
Messages: 47
Registered: July 2009
Member
We have a Text widget wrapped in a ControlContribution and added to the
workbench Coolbar. We have hooked in standard cut/copy/paste actions to
the text widget using TextActionHandler. The key bindings do not work.
If the same ControlContribution is added to a view then all works as
expected, so our assumption is that the key binding manager is not
recognising the Coolbar as a valid context. How can this problem be fixed?

Thanks,

James
Re: Getting Key Bindings to work with Text Widget in Coolbar [message #328154 is a reply to message #328142] Thu, 15 May 2008 17:58 Go to previous messageGo to next message
James Willans is currently offline James WillansFriend
Messages: 47
Registered: July 2009
Member
Bounce! Any thoughts?

James Willans wrote:
> We have a Text widget wrapped in a ControlContribution and added to the
> workbench Coolbar. We have hooked in standard cut/copy/paste actions to
> the text widget using TextActionHandler. The key bindings do not work.
> If the same ControlContribution is added to a view then all works as
> expected, so our assumption is that the key binding manager is not
> recognising the Coolbar as a valid context. How can this problem be fixed?
>
> Thanks,
>
> James
Re: Getting Key Bindings to work with Text Widget in Coolbar [message #328917 is a reply to message #328154] Fri, 06 June 2008 17:30 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

In 3.3 and 3.4 you get around that using the
org.eclipse.ui.swt.IFocusService

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:contribute to status line
Next Topic:Extrange behaviours in Ganymedes M7 workbench
Goto Forum:
  


Current Time: Sun Jun 30 00:19:16 GMT 2024

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

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

Back to the top