Closed Bug 757372 Opened 13 years ago Closed 13 years ago

[AccessFu] Provide feedback when entering an entry field for editing

Categories

(Core :: Disability Access APIs, defect)

ARM
Android
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla16

People

(Reporter: MarcoZ, Assigned: eeejay)

Details

Attachments

(1 file)

STR: 1. Open a page that has an entry field. 2. navigate to it. 3. Press Enter to focus on it so one can type. Expected: One should get feedback that one can now type. Actual: No feedback is given.
Assignee: nobody → eitan
Do we only need feedback when we enter editing mode, or when we exit as well? I have a WIP, and the exit message gets clobbered by the focus move utterance. It sounds self evident that we are now navigating, so I don't see this too much as an issue. I guess if we add a key to exit editing without arrowing out of it, it should announce something. Thoughts?
I agree on both counts. :)
Comment on attachment 639413 [details] [diff] [review] Announce "editing" when in editing mode. Use a11y states and focus to determine it. Review of attachment 639413 [details] [diff] [review]: ----------------------------------------------------------------- ::: accessible/src/jsat/AccessFu.jsm @@ +368,5 @@ > + > + let [,extState] = Utils.getStates(acc); > + let editableState = extState & > + (Ci.nsIAccessibleStates.EXT_STATE_EDITABLE | > + Ci.nsIAccessibleStates.EXT_STATE_MULTI_LINE); I'm unsure if this captures DesignMode/content editable... might want to // XXX that but I'm also not sure we'll care about it soon. Your call. ::: accessible/src/jsat/Presenters.jsm @@ +358,5 @@ > + editingModeChanged: function AndroidPresenter_editingModeChanged(aIsEditing) { > + this._appAnnounce(UtteranceGenerator.genForEditingMode(aIsEditing)); > + }, > + > + _appAnnounce: function _appAnnounce(aUtterance) { Just curious why you named it "appAnnounce"? Is it because this is where we are reminded we are an app(lication) sending an a11y event on android?
Attachment #639413 - Flags: review?(dbolter) → review+
(In reply to David Bolter [:davidb] from comment #4) > Comment on attachment 639413 [details] [diff] [review] > Announce "editing" when in editing mode. Use a11y states and focus to > determine it. > > Review of attachment 639413 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: accessible/src/jsat/AccessFu.jsm > @@ +368,5 @@ > > + > > + let [,extState] = Utils.getStates(acc); > > + let editableState = extState & > > + (Ci.nsIAccessibleStates.EXT_STATE_EDITABLE | > > + Ci.nsIAccessibleStates.EXT_STATE_MULTI_LINE); > > I'm unsure if this captures DesignMode/content editable... might want to // > XXX that but I'm also not sure we'll care about it soon. Your call. > Yes, unlike the previous DOM solution, this should account for design mode. > ::: accessible/src/jsat/Presenters.jsm > @@ +358,5 @@ > > + editingModeChanged: function AndroidPresenter_editingModeChanged(aIsEditing) { > > + this._appAnnounce(UtteranceGenerator.genForEditingMode(aIsEditing)); > > + }, > > + > > + _appAnnounce: function _appAnnounce(aUtterance) { > > Just curious why you named it "appAnnounce"? Is it because this is where we > are reminded we are an app(lication) sending an a11y event on android? An inspiration from JellyBean API where they have an accessibility event just for things like this.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: