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

Bug 338190

Summary: HTML input of type checkbox does not respond to spacebar keyboard access
Product: [Eclipse Project] Platform Reporter: Jack Lynch <speedyjack>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: grant_gayed
Version: 4.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Jack Lynch CLA 2011-02-25 04:54:50 EST
Build Identifier: 20100917-0705

If I run Snippet 128 http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet128.java?view=co  to open a browser in an SWT shell and open the following HTML file

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>Checkbox fun</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     </head>
    <body>
    <div>
	<label for="peanutsCheck">Allergic to peanuts:</label>
	<input type="checkbox" id="peanuts" tabIndex="0" name="peanutsCheck"/>
	</div>
   </body>
</html>

then tabbing to the checkbox and attempting to use spacebar to toggle the value has no effect.  It will work if you just use a browser.

My system browser is IE8.

Reproducible: Always

Steps to Reproduce:
1. Run snippet 128
2. Open a html file with a checkbox in it
3. Tab to it/click and then attempt to set with keyboard (spacebar)

Main issue with this is a11y support.
Comment 1 Grant Gayed CLA 2011-12-16 09:48:13 EST

*** This bug has been marked as a duplicate of bug 366266 ***