Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 338190 - HTML input of type checkbox does not respond to spacebar keyboard access
Summary: HTML input of type checkbox does not respond to spacebar keyboard access
Status: CLOSED DUPLICATE of bug 366266
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.1   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-25 04:54 EST by Jack Lynch CLA
Modified: 2011-12-16 09:48 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***