Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Troubles with pressShorcut
Troubles with pressShorcut [message #1311071] Wed, 23 April 2014 15:28 Go to next message
benson arce is currently offline benson arce
Messages: 1
Registered: April 2014
Junior Member
Hi everyone, I am playing with SWTBot but I have a problem, I am editing a Styled Text and I need to press "CTRL + SPACE" and I tested with plenty of functions that I found here in the forums but none works:

1.- KeyboardFactory.getSWTKeyboard().pressShortcut(Keystrokes.CTRL, Keystrokes.SPACE);

2.- KeyboardFactory.getAWTKeyboard().pressShortcut(SWT.CTRL, SWT.SPACE);

FOR THESE FUNCTIONS I DECLARED MY BOT:
public static SWTWorkbenchBot bot;
3.- bot.styledText().pressShortcut(Keystrokes.CTRL, Keystrokes.SPACE);

4.- bot.styledText().pressShortcut(SWT.CTRL, SWT.SPACE);


please help me!!
Re: Troubles with pressShorcut [message #1311208 is a reply to message #1311071] Wed, 23 April 2014 17:12 Go to previous message
Mickael Istria is currently offline Mickael Istria
Messages: 764
Registered: July 2009
Location: Grenoble, France
Senior Member
Did you have a look at
https://bugs.eclipse.org/bugs/show_bug.cgi?id=278162 ? It may contain
some helpful insights.

Have you also tried
text.pressShortcut(SWT.CTRL, ' ');
?
--
Mickael Istria
My job: http://www.jboss.org/tools
My blog: http://mickaelistria.wordpress.com
My Tweets: http://twitter.com/mickaelistria
Previous Topic:Using SWTBot for Eclipse tutoring
Next Topic:Launched workspace error
Goto Forum:
  


Current Time: Thu Oct 02 02:27:28 GMT 2014

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

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