Closed Bug 924983 Opened 11 years ago Closed 11 years ago

[AccessFu] Support range widget adjustment with up/down swipes

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla28

People

(Reporter: eeejay, Assigned: eeejay)

Details

Attachments

(1 file)

      No description provided.
Up/down will be used for more than just range widgets, but here is a start.
Comment on attachment 814960 [details] [diff] [review]
Introduce context actions

This looks good for a start. Equally, if not even more, important are things like moving by character or word, esp in FF OS, which should also be supported by this up down swipe I think. I do not think it is useful to tie left and right swipes to different granularities like Android does.
Attachment #814960 - Flags: review?(yura.zenevich)
Comment on attachment 814960 [details] [diff] [review]
Introduce context actions

Review of attachment 814960 [details] [diff] [review]:
-----------------------------------------------------------------

Looks great! r=me with the tiniest nits.

::: accessible/src/jsat/content-script.js
@@ +329,5 @@
> +function adjustRange(aMessage) {
> +  function sendUpDownKey(aAccessible) {
> +    let evt = content.document.createEvent('KeyboardEvent');
> +    let keycode = aMessage.json.direction == 'forward' ?
> +          content.KeyEvent.DOM_VK_DOWN : content.KeyEvent.DOM_VK_UP;

Nit: too many spaces.

@@ +332,5 @@
> +    let keycode = aMessage.json.direction == 'forward' ?
> +          content.KeyEvent.DOM_VK_DOWN : content.KeyEvent.DOM_VK_UP;
> +    evt.initKeyEvent(
> +      "keypress", false, true, null, false, false, false, false, keycode, 0);
> +    if (aAccessible.DOMNode)

NIT: {} around the if statement.
Attachment #814960 - Flags: review?(yura.zenevich) → review+
https://hg.mozilla.org/mozilla-central/rev/15dc352386e8
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla28
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: