onMouseDown/Up must also support the Keyboard

Overview

The trio of onmousedown, onmouseup and onmousemove events are often used to create “drag and drop” user interface controls to implement features of a web page or application. However, these features need to be implemented through the keyboard as well, so that people who cannot use the mouse are able to access and use the features.

Benefits to People with Disabilities

  1. People with disabilities can use keyboard commands to access the same functions that can be achieved with the mouse.

Benefits to Everyone

  1. All users will benefit from being able to use keyboard commands in addition to mouse actions.

Benefits to Developers

  1. Developers benefit by providing users with multiple ways to interact with their web resources.

Markup

[onmousemove] (HTML4)

[onmouseup] (HTML4)

[onmousedown] (HTML4)

Related Accessibility Requirements

Section 508

Illinois Information Technology Accessibility Standards

Web Content Accessibility Guidelines (WCAG) 2.0

Web Content Accessibility Guidelines (WCAG) 1.0