Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 551945

Summary: [Table][Tree] Support keyboard shortcut CTRL+A to select all items
Product: [RT] RAP Reporter: Sebastian Habenicht <dev>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: georg.breitschopf
Version: 3.11   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Sebastian Habenicht CLA 2019-10-09 02:40:23 EDT
CTRL+A works in SWT to select all items of a focused table or tree. Please implement in RWT.

Related forum thread: https://www.eclipse.org/forums/index.php/t/1100780/
Comment 1 Ivan Furnadjiev CLA 2019-10-25 04:36:51 EDT
Does it work with key lestener attached and ACTIVE/CANCEL_KEY set on the table with current RAP version?
Comment 2 Sebastian Habenicht CLA 2019-10-28 11:11:29 EDT
(In reply to Ivan Furnadjiev from comment #1)
> Does it work with key lestener attached and ACTIVE/CANCEL_KEY set on the
> table with current RAP version?

Do you mean implementing the functionality in an own key listener? Yes, that works, setting ACTIVE/CANCEL_KEY to the table is not required in this case.

I opened this request because it comes out of the box with SWT and hence should also be OOTB for RWT, shouldn't it?
Comment 3 Sebastian Habenicht CLA 2019-10-30 04:45:00 EDT
Just realized that CTRL+A does not work in a standalone SWT snippet, only within an RCP application. 

So to be correct, the requirement is actually to implement it in RAP, not in RWT (tested in RAP hello world application and it does not work there while it works in the RCP hello world application).
Comment 4 Ivan Furnadjiev CLA 2019-10-30 04:54:53 EDT
That's probably because RCP (Workbench) defines key-binding for CTRL+A, which is disabled in RAP [1] because of conflicts with native Text (HTML input) behaviour.
That's why I suggested to implement it in your app code by setting ACTIVE/CANCEL_KEY on the table. Will close this issue now. Please reopen if you disagree.  

[1] https://github.com/eclipse/rap/blob/master/bundles/org.eclipse.rap.ui/plugin.xml#L214
Comment 5 Sebastian Habenicht CLA 2019-10-30 05:12:31 EDT
Thanks for the info, that was my guess, too, after I tested the SWT standalone snippet. Closing the issue is fine by me.