wcx6298 / smartgwt

Automatically exported from code.google.com/p/smartgwt
0 stars 0 forks source link

Strange behavior of spacebar in ListGrid with checkbox selection #610

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Normally, the spacebar acts as a selection shortcut for checkboxes.

Currently, the spacebar is not consistently toggling the selected checkbox 
(possibly as focus issue?)

If you select few checkboxes in a ListGrid, and then select the bottom one 
(uncheck) and then hit the space bar it will cause the top-most checkbox to 
toggle instead.  If you click on the bottom checkbox again and toggle the space 
bar repeatedly, it will work its way down the list top-to-bottom.

The spacebar should toggle previously selected/deselected item only.

Steps to reproduce:
1. navigate to 
http://www.smartclient.com/smartgwt/showcase/#grid_interaction_checkboxselect
2. check all the boxes along the left column of ListGrid
3. uncheck the bottom checkbox (this would assumably create focus on this 
checkbox)
4. press the space bar a couple times
4a. note that the top checkbox is toggling (instead the bottom one you selected)
5. click the bottom checkbox again
6. press the space bar a couple times
6a. note the top one becomes unchecked and the next item down is toggling
6b. repeat steps 5 and 6
6c. note that as you click the bottom box while toggling the space bar, it will 
progressively work its way down the list

This situation happens with SmartGWT 2.4 in every browser. I also checked it 
with latest version of SmartGWT sources.

Original issue reported on code.google.com by enar...@gmail.com on 20 Jul 2011 at 12:37