| Summary: | Arrow Keys behavior differs between SWT/RWT for Radio Buttons (SWT.RADIO) | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Sebastien Arod <sebastien.arod> | ||||||
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> | ||||||
| Status: | RESOLVED FIXED | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P3 | ||||||||
| Version: | 2.0 | ||||||||
| Target Milestone: | 2.1 M1 | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
I reproduced the issue with RAP 1.5.1 and RAP 2.0 RC1 On Firefox 18.0.1 and Chromium Version 23.0.1271.97 Ubuntu 12.04 Created attachment 226264 [details]
Workaround replacing the default arrow behavior
Here is sample of code to workaround this issue and have a behavior similar to SWT
At least in SWT on Windows, arrow keys change both focus and selection. That's why I think that the RWT behavior is correct. I agree with the second issue - disabled button get selected with arrow keys. Disabled buttons should be skipped instead. Fixed in master with commit ded3bbdf66248f07bb5264e76c550993afd92cea. |
Created attachment 226247 [details] A snippet project showing the problems Arrow Keys with radio buttons behave differently in RWT and SWT. 1. First discrepancy: In SWT using arrow keys change the focus but not the selection of buttons In RWT the arrow keys change both focus and selection state 2. Second discrepancy: In SWT using arrow keys skip the disabled buttons. In RWT disabled buttons can still be selected. I attach a snippet project to reproduce the problems