Keycodes and keyboard event compat
Colin Clark
colin.clark at utoronto.ca
Sun Dec 23 18:18:01 UTC 2007
Hi all,
As a follow-up to this, we've incorporated these commonly-used
keycodes for keyboard accessibility as a set of constants hanging off
the top-level fluid JavaScript object. I have no idea why jQuery
doesn't offer these out of the box.
<code snippet>
fluid.keys = {
UP: 38,
DOWN: 40,
LEFT: 37,
RIGHT: 39,
SPACE: 32,
ENTER: 13,
TAB: 9,
CTRL: 17
};
</code snippet>
Next step is to create a set of functions that will listen to keyboard
events and handle basic keyboard accessibility for free. I've been
cooking up just such a library on recent flights and in between
meetings and conferences. :) Simon Bates has provided with with
invaluable advice and feedback. We'll have something available as a
jQuery plugin early in the new year, which I hope we can contribute to
the wider jQuery community.
Colin
On 17-Dec-07, at 12:25 PM, Eli Cochran wrote:
> Here is the document online that Colin mentioned that covers the
> cross browser keycodes and the way that keyboard events are handled
> cross browser.
>
> http://unixpapa.com/js/key.html
>
> - Eli
>
> . . . . . . . . . . . . . . . . . . .
>
> Eli Cochran
> user interaction developer
> ETS, UC Berkeley
>
>
> _______________________________________________
> fluid-work mailing list
> fluid-work at fluidproject.org
> http://fluidproject.org/mailman/listinfo/fluid-work
---
Colin Clark
Technical Lead, Fluid Project
Adaptive Technology Resource Centre, University of Toronto
http://fluidproject.org
More information about the fluid-work
mailing list