Troubles with pressShorcut [message #1311071] |
Wed, 23 April 2014 11:28  |
Eclipse User |
|
|
|
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!!
|
|
|
|
Powered by
FUDForum. Page generated in 0.03960 seconds