Select all table/tree items via keyboard shortcut [message #1815407] |
Wed, 02 October 2019 11:23 |
Sebastian Habenicht Messages: 44 Registered: January 2013 |
Member |
|
|
Hi,
CTRL+A works in SWTto select all items of a focused table or tree. However, it does not work in RWT with the same snippet. I tried to find information on it in bugzilla, this forum and google, but did not find anything. I guess I probably overlook something since it seems to be a standard keyboard shortcut (and is not a browser standard shortcut to my knowledge). Does anyone know what to do to make it work in RWT?
Regards,
Sebastian
Snippet:
final Table table = new Table(parent, SWT.BORDER | SWT.MULTI);
final TableColumn tc = new TableColumn(table, SWT.NONE);
tc.setWidth(300);
final TableColumn tc2 = new TableColumn(table, SWT.NONE);
tc2.setWidth(300);
final TableItem ti1 = new TableItem(table, SWT.NONE);
ti1.setText("TEXT1");
final TableItem ti2 = new TableItem(table, SWT.NONE);
ti2.setText("TEXT2");
final TableItem ti3 = new TableItem(table, SWT.NONE);
ti3.setText("TEXT3");
final Tree tree = new Tree(parent, SWT.BORDER | SWT.MULTI);
final TreeColumn trc = new TreeColumn(tree, SWT.NONE);
trc.setWidth(300);
final TreeColumn trc2 = new TreeColumn(tree, SWT.NONE);
trc2.setWidth(300);
final TreeItem tri1 = new TreeItem(tree, SWT.NONE);
tri1.setText("TEXT1");
final TreeItem tri2 = new TreeItem(tree, SWT.NONE);
tri2.setText("TEXT2");
final TreeItem tri3 = new TreeItem(tree, SWT.NONE);
tri3.setText("TEXT3");
[Updated on: Wed, 02 October 2019 12:00] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02721 seconds