What about using the pressShortcut()
methood?
For TreeItem:
final SWTBotTreeItem item = ...
item.select().pressShortcut(SWT.CTRL, 'F');
For TableItem:
final SWTBotTableItem item = ...
item.select().pressShortcut(SWT.CTRL, 'F');
For EclipseEditor
((SWTBotEclipseEditor)bot.activeEditor()).pressShortcut(SWT.CTRL, '1')
From Active Shell:
bot.activeShell().pressShortcut(
Keystrokes.CTRL, KeyStroke.getInstance("1"));