Giter Club home page Giter Club logo

Comments (2)

aeschylus avatar aeschylus commented on May 28, 2024

https://developer.mozilla.org/en-US/docs/Web/Accessibility/Keyboard-navigable_JavaScript_widgets
http://www.oaa-accessibility.org/example/40/

It's one thing to prevent "traps", and another to have a reasonable strategy for this. Screen-readers will tend to tab through the DOM rather than through meaningful regions of the UI (which has been hacked into existence out of DOM elements). We should develop a comprehensive strategy for navigating with the keyboard that works for users who need accessibility features and "power users".

I would recommend using tab to focus an object, and enter to "go into" that object. You can always "get out" of the current context by pressing escape. Example: Mirador loads with two windows open. By default the user is in the "viewer context". Tabbing therefore cycles through the buttons of the viewer, and over the workspace area. Having focused the workspace by tabbing, the user may now "enter" it by pressing "enter". Tabbing now focuses the windows of the workspace. "Entering" a window causes tab to cycle over the controls of the window, etc. To get back out to the viewer, press escape twice. This "releases" the user into the workspace context, and then "releases" them into the viewer context.

Without some comprehensive strategy of this kind, the user will simply tab through the hundreds of DOM elements that make up the application's interface, going from higher-level constructs like a window to the smallest button in no logical order except which one is first in the DOM.

It may also be nice (for power users) to have lettered commands that apply to the given context ("A" for annotations if the window's image view context is focused, "s" for "save annotation" if saving an annotation, etc.). Some libraries that can help with this are mousetrap.js.

from mirador.

mejackreed avatar mejackreed commented on May 28, 2024

There is some good information here, but I think the project has moved on with Mirador 3. Closing this issue now.

from mirador.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.