Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Select all table/tree items via keyboard shortcut(CTRL+A does not work in RWT)
Select all table/tree items via keyboard shortcut [message #1815407] Wed, 02 October 2019 11:23 Go to next message
Sebastian Habenicht is currently offline Sebastian HabenichtFriend
Messages: 31
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

Re: Select all table/tree items via keyboard shortcut [message #1815687 is a reply to message #1815407] Tue, 08 October 2019 12:04 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2327
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi,

CTRL+A is not implemented in RWT. Please open an enhancement request about it.

Best regards,
Ivan
Re: Select all table/tree items via keyboard shortcut [message #1815723 is a reply to message #1815687] Wed, 09 October 2019 06:42 Go to previous messageGo to next message
Sebastian Habenicht is currently offline Sebastian HabenichtFriend
Messages: 31
Registered: January 2013
Member
Hi Ivan,

thanks for the reply, I have opened a request: https://bugs.eclipse.org/bugs/show_bug.cgi?id=551945

Best regards,
Sebastian
Re: Select all table/tree items via keyboard shortcut [message #1816001 is a reply to message #1815723] Wed, 16 October 2019 21:02 Go to previous message
Dmitry Dukhov is currently offline Dmitry DukhovFriend
Messages: 128
Registered: February 2013
Senior Member

and if use setAccelerator

Why not?

Accelerator support for MenuItem
The SWT method MenuItem.setAccelerator( int ) has been implemented. This method can be used to bind key shortcuts to menu items easily. For example, the following statement will lead to a selection event being fired on the menu item when Ctrl+Shift+A is pressed.

menuItem.setAccelerator( SWT.CTRL | SWT.SHIFT | 'A' );
Please note that the browser already defines a number of key bindings. Some browsers do not allow to override all of these bindings.

Dmitry
Previous Topic:RWT service StartupParameters does not return form-data in request body
Next Topic:Problems install IDE RAP
Goto Forum:
  


Current Time: Sat Dec 14 01:50:22 GMT 2019

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

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

Back to the top