SlideShare a Scribd company logo
Keyboard accessibility
Patrick H. Lauke / SkillSwap Bristol / 11 November 2008
JUST BECAUSE I DON'T USE A MOUSE DOESN'T MEAN I'M
SECOND CLASS...
accessibility = blind users +
screenreaders?
difficult to test – need to install and learn
screenreader
many different forms of disability
keyboard or keyboard-like interfaces
neglected stepchild of accessibility?
easiest to test...no special software
required
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm second class / Skillswap Bristol / 11 November 2008
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm second class / Skillswap Bristol / 11 November 2008
by default, users TAB
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm second class / Skillswap Bristol / 11 November 2008
using keyboard, move from one
focusable element to the next
standard focusable elements:
links, form elements, image map areas
good practice: highlight focused link
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm second class / Skillswap Bristol / 11 November 2008
a:hover { some simple highlighting }
a:focus, a:hover, a:active { ... }
don't suppress outline!
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm second class / Skillswap Bristol / 11 November 2008
a { … outline:none; }
keyboard accessible, but where am I?
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm second class / Skillswap Bristol / 11 November 2008
TAB cycle – normally just source order
tabindex – force a certain TAB cycle
anything with tabindex takes
precedence
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm second class / Skillswap Bristol / 11 November 2008
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm second class / Skillswap Bristol / 11 November 2008
easy enough...let's drop in some
javascript and complicate matters...
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm second class / Skillswap Bristol / 11 November 2008
keyboard accessible? yes...but why no
eye candy and info for keyboard users?
$('#whatever').hover(function() {…},
function() {...} );
double it up with
$('#whatever').focus(function() {…});
$('#whatever').blur(function() {...} );
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm second class / Skillswap Bristol / 11 November 2008
doing things when mouse hovers...
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm second class / Skillswap Bristol / 11 November 2008
irritating, but if you insist...
do it on focus/blur as well!
FYI: iPhone / Mozilla Fennec don't do
hover
lightboxes…we love 'em
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm second class / Skillswap Bristol / 11 November 2008
close it again when TAB out...
don't invent new keyboard commands
more complex solution: manage focus
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm second class / Skillswap Bristol / 11 November 2008
and now, the dangerous part...
with javascript, attach onclick behaviour
to anything...
$('div').click(function() {…} );
sexy tutorials out there doing it wrong
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm second class / Skillswap Bristol / 11 November 2008
how not to do an accordion
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm second class / Skillswap Bristol / 11 November 2008
how not to add action buttons
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm second class / Skillswap Bristol / 11 November 2008
jQuery UI actually gets most of this
right...
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm second class / Skillswap Bristol / 11 November 2008
my biggest bugbear...GOOGLE
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm second class / Skillswap Bristol / 11 November 2008
let's just make some clickable DIVs...
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm second class / Skillswap Bristol / 11 November 2008
Opera…the anomaly...
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm second class / Skillswap Bristol / 11 November 2008
tabindex's new lease of life?
WAI-ARIA proposes adding tabindex to
make arbitrary elements focusable
good...but still can't click (via keyboard)
other sites not completely inaccessible,
but why make keyboard access more
complex?
Keyboard accessibility - just because I don't use a mouse doesn't mean I'm second class / Skillswap Bristol / 11 November 2008
in conclusion...
if you style :hover, also :focus and
:active
don't suppress outline
(or reintroduce it for :focus and :active)
leave tabindex alone – sensible source
order
javascript on hover? also on focus/blur
lightboxes and their problems
only attach behaviour to focusable
elements
</rant>

More Related Content

PDF
World Usability Day Keyboard Accessibility 12.11.2009
PDF
Keyboard accessibility - basic steps towards a more usable and accessible sit...
PPT
keyboard accessibility
PPTX
The Pointerless Web
DOCX
Web accessibility testing 1 - keyboard
PDF
Keyboard and Interaction Accessibility Techniques
PDF
Open and Accessible UI
PPT
Making JavaScript Accessible
World Usability Day Keyboard Accessibility 12.11.2009
Keyboard accessibility - basic steps towards a more usable and accessible sit...
keyboard accessibility
The Pointerless Web
Web accessibility testing 1 - keyboard
Keyboard and Interaction Accessibility Techniques
Open and Accessible UI
Making JavaScript Accessible

Similar to Keyboard accessibility - just because I don't use a mouse doesn't mean I'm second class / Skillswap Bristol / 11 November 2008 (20)

PPTX
The Recipe for Making Accessible Widgets!
PDF
JavaScript and Accessibility: Creating Interface Magic for Everyone
KEY
Keyboard Access APIs
PPTX
Accessibility with Single Page Apps
PPT
10 tips in 10 minutes - DevTO Sept 30, 2013
KEY
Making your jQuery Plugins More Accessible
PPTX
Web accessibility
PPTX
Accessibility of HTML5 and Rich Internet Applications - CSUN 2012
ZIP
Practical Accessibility
PPTX
Practical A11y testing for surveys
PPTX
Selfish Accessibility: HTML5 Developer Conference 2014
ZIP
Avoiding common Accessibility mistakes
PDF
How Accessibility Made Me a Better Developer
KEY
Yahoo! Finance accessibility: CSUN 2011
PPTX
Fringe Accessibility: London Web Standards
PDF
a11yTO - Web Accessibility for Developers
PDF
Web Accessibility Gone Wild (Now Even MORE Wilder!)
PPTX
Fringe Accessibility: A11y Camp Toronto 2015
PDF
Beginners Guide to Accessibility
PPTX
Beginners Guide To Web Accessibility - WordCamp UK July 2013
The Recipe for Making Accessible Widgets!
JavaScript and Accessibility: Creating Interface Magic for Everyone
Keyboard Access APIs
Accessibility with Single Page Apps
10 tips in 10 minutes - DevTO Sept 30, 2013
Making your jQuery Plugins More Accessible
Web accessibility
Accessibility of HTML5 and Rich Internet Applications - CSUN 2012
Practical Accessibility
Practical A11y testing for surveys
Selfish Accessibility: HTML5 Developer Conference 2014
Avoiding common Accessibility mistakes
How Accessibility Made Me a Better Developer
Yahoo! Finance accessibility: CSUN 2011
Fringe Accessibility: London Web Standards
a11yTO - Web Accessibility for Developers
Web Accessibility Gone Wild (Now Even MORE Wilder!)
Fringe Accessibility: A11y Camp Toronto 2015
Beginners Guide to Accessibility
Beginners Guide To Web Accessibility - WordCamp UK July 2013
Ad

More from Patrick Lauke (20)

PDF
These (still) aren't the SCs you're looking for ... (mis)adventures in WCAG 2...
PDF
Pointer Events Working Group update / TPAC 2023 / Patrick H. Lauke
PDF
These aren't the SCs you're looking for ... (mis)adventures in WCAG 2.x inter...
PDF
These aren't the SCs you're looking for ... (mis)adventures in WCAG 2.x inter...
PDF
Too much accessibility - good intentions, badly implemented / Public Sector F...
PDF
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
PDF
Evaluating web sites for accessibility with Firefox / Manchester Digital Acce...
PDF
Managing and educating content editors - experiences and ideas from the trenc...
PDF
Implementing Web Standards across the institution: trials and tribulations of...
PDF
Geolinking content - experiments in connecting virtual and physical places / ...
PDF
All change for WCAG 2.0 - what you need to know about the new accessibility g...
PDF
Web Accessibility - an introduction / Salford Business School briefing / Univ...
PDF
Doing it in style - creating beautiful sites, the web standards way / WebDD /...
PDF
Web standards pragmatism - from validation to the real world / Web Developers...
PDF
Ian Lloyd/Patrick H. Lauke: Accessified - practical accessibility fixes any w...
PDF
The state of the web - www.salford.ac.uk / 2007
PDF
WAI-ARIA An introduction to Accessible Rich Internet Applications / JavaScrip...
PDF
WAI-ARIA An introduction to Accessible Rich Internet Applications / CSS Minsk...
PDF
WAI-ARIA An introduction to Accessible Rich Internet Applications / AccessU 2018
PDF
Getting touchy - an introduction to touch and pointer events / Frontend NE / ...
These (still) aren't the SCs you're looking for ... (mis)adventures in WCAG 2...
Pointer Events Working Group update / TPAC 2023 / Patrick H. Lauke
These aren't the SCs you're looking for ... (mis)adventures in WCAG 2.x inter...
These aren't the SCs you're looking for ... (mis)adventures in WCAG 2.x inter...
Too much accessibility - good intentions, badly implemented / Public Sector F...
Styling Your Web Pages with Cascading Style Sheets / EDU course / University ...
Evaluating web sites for accessibility with Firefox / Manchester Digital Acce...
Managing and educating content editors - experiences and ideas from the trenc...
Implementing Web Standards across the institution: trials and tribulations of...
Geolinking content - experiments in connecting virtual and physical places / ...
All change for WCAG 2.0 - what you need to know about the new accessibility g...
Web Accessibility - an introduction / Salford Business School briefing / Univ...
Doing it in style - creating beautiful sites, the web standards way / WebDD /...
Web standards pragmatism - from validation to the real world / Web Developers...
Ian Lloyd/Patrick H. Lauke: Accessified - practical accessibility fixes any w...
The state of the web - www.salford.ac.uk / 2007
WAI-ARIA An introduction to Accessible Rich Internet Applications / JavaScrip...
WAI-ARIA An introduction to Accessible Rich Internet Applications / CSS Minsk...
WAI-ARIA An introduction to Accessible Rich Internet Applications / AccessU 2018
Getting touchy - an introduction to touch and pointer events / Frontend NE / ...
Ad

Recently uploaded (20)

PDF
WOOl fibre morphology and structure.pdf for textiles
PPTX
Tartificialntelligence_presentation.pptx
PPTX
cloud_computing_Infrastucture_as_cloud_p
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
A comparative study of natural language inference in Swahili using monolingua...
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
PPTX
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
Hybrid model detection and classification of lung cancer
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
project resource management chapter-09.pdf
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PPTX
Chapter 5: Probability Theory and Statistics
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
WOOl fibre morphology and structure.pdf for textiles
Tartificialntelligence_presentation.pptx
cloud_computing_Infrastucture_as_cloud_p
Programs and apps: productivity, graphics, security and other tools
NewMind AI Weekly Chronicles - August'25-Week II
Unlocking AI with Model Context Protocol (MCP)
Accuracy of neural networks in brain wave diagnosis of schizophrenia
A comparative study of natural language inference in Swahili using monolingua...
Assigned Numbers - 2025 - Bluetooth® Document
OMC Textile Division Presentation 2021.pptx
From MVP to Full-Scale Product A Startup’s Software Journey.pdf
TechTalks-8-2019-Service-Management-ITIL-Refresh-ITIL-4-Framework-Supports-Ou...
Digital-Transformation-Roadmap-for-Companies.pptx
Hybrid model detection and classification of lung cancer
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
project resource management chapter-09.pdf
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
Chapter 5: Probability Theory and Statistics
SOPHOS-XG Firewall Administrator PPT.pptx
Univ-Connecticut-ChatGPT-Presentaion.pdf

Keyboard accessibility - just because I don't use a mouse doesn't mean I'm second class / Skillswap Bristol / 11 November 2008