|Re: Editor-specific Shortcut isn't recognized [message #543763 is a reply to message #543703]
||Wed, 30 June 2010 09:52
| Pascal G
Registered: July 2009
On 10-06-30 07:05 AM, Markus Oley wrote:|
> I want to call a shortcut, that's bound to command shown in my
> contextmenue of my current editor.
> I tried to trigger it by calling
> KeyboardFactory.getSWTKeyboard().pressShortcut(SWT.SHIFT | SWT.CTRL, 'O');
> (it's a Ctrl+Shift+O - organize imports in a xtexteditor).
> This doesn't work. I then tried to call another shortcut in my
> contextmenue, this doesn't work also.
> General Shortcuts like Shift+Ctrl+R work this way.
> What's the problem?
Does your current editor has the focus (or keyboard focus) when you try
That's probably the only thing I can see... otherwise, make sure it
really is working when you try it and that there isn't some fancy-weird
dependency that would prevent it from working (such as KeyBinding
Hope this helps.
Pascal Gélinas | Software Developer
*Nu Echo Inc.*
http://www.nuecho.com/ | http://blog.nuecho.com/
*Because performance matters.*
Powered by FUDForum
. Page generated in 0.01473 seconds