Closed Bug 1331375 Opened 8 years ago Closed 8 years ago

[a11y] Can't navigate out of debugger content window using keyboard

Categories

(DevTools :: Debugger, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: npang, Assigned: npang, Mentored)

References

Details

Attachments

(1 file)

No description provided.
Assignee: nobody → npang
Comment on attachment 8827665 [details] Bug 1331375 - Can't navigate out of debugger content window using keyboard. https://reviewboard.mozilla.org/r/105286/#review106298 * We need similar tests for styleeditor changes. * Also regarding the debugger new stuff. I'm suspecting that this is an included version of debuggerh.html (https://github.com/devtools-html/debugger.html) and any changes in that code have to go upstream right now instead of gecko. Could you double check with someone in #devtools, maybe @gl knows. ::: devtools/client/debugger/new/debugger.js:35299 (Diff revision 1) > renderItem: this.renderItem > }); > > return dom.div({ > className: "sources-list", > - onKeyDown: e => { > + onKeyDown: e => this.onKeyDown(e) Not sure what this changes.. Doesn't the original onKeyDown function handle enter key the same way (if enter and focused item, select it)? ::: devtools/client/sourceeditor/editor.js:513 (Diff revision 1) > + e.preventDefault(); > + codeWrapper.focus(); > + } else if (key === "Enter" && target == codeWrapper){ > + e.preventDefault(); > + // Focus into editor's text area > + codeWrapper.firstChild.firstChild.focus(); This feels a little unsafe as markup underneath might change. Could you check if there's a useful selector in the component already or if not, make one?
Attachment #8827665 - Flags: review?(yzenevich)
Comment on attachment 8827665 [details] Bug 1331375 - Can't navigate out of debugger content window using keyboard. https://reviewboard.mozilla.org/r/105286/#review106308 ::: devtools/client/debugger/new/debugger.js:35299 (Diff revision 1) > renderItem: this.renderItem > }); > > return dom.div({ > className: "sources-list", > - onKeyDown: e => { > + onKeyDown: e => this.onKeyDown(e) Yep it does the exact same thing right now, was going to add aria-control to the focused item in the onKeyDown(selected) but I'll do that in the other bug
Completed and merged in github repo https://github.com/devtools-html/debugger.html
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: