Changeset 256652 in webkit
- Timestamp:
- Feb 14, 2020 3:18:34 PM (4 years ago)
- Location:
- trunk/Source/WebInspectorUI
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebInspectorUI/ChangeLog
r256647 r256652 1 2020-02-14 Nikita Vasilyev <nvasilyev@apple.com> 2 3 Web Inspector: VoiceOver doesn't read selected panel tab 4 https://bugs.webkit.org/show_bug.cgi?id=207735 5 <rdar://problem/59445157> 6 7 Reviewed by Timothy Hatcher. 8 9 * UserInterface/Views/NavigationBar.js: 10 (WI.NavigationBar): 11 (WI.NavigationBar.prototype._mouseDown): 12 (WI.NavigationBar.prototype._mouseUp): 13 Navigation bar itself shouldn't receive focus - its items should. 14 15 * UserInterface/Views/RadioButtonNavigationItem.js: 16 (WI.RadioButtonNavigationItem): 17 "tab" was passed as a label by mistake. VoiceOver read every tab as "tab" instead of it's actual label. 18 19 (WI.RadioButtonNavigationItem.prototype.set selected): 20 When clicking on a tab, focus on it so VoiceOver could read it. 21 1 22 2020-02-14 Nikita Vasilyev <nvasilyev@apple.com> 2 23 -
trunk/Source/WebInspectorUI/UserInterface/Views/NavigationBar.js
r256086 r256652 31 31 32 32 this.element.classList.add(this.constructor.StyleClassName || "navigation-bar"); 33 this.element.tabIndex = 0;34 33 35 34 if (role) … … 313 312 document.addEventListener("mouseup", this._mouseUpEventListener, false); 314 313 315 event.preventDefault();316 314 event.stopPropagation(); 317 315 } … … 363 361 document.removeEventListener("mouseup", this._mouseUpEventListener, false); 364 362 365 // Restore the tabIndex so the navigation bar can be in the keyboard tab loop.366 this.element.tabIndex = 0;367 368 363 // Dispatch the selected event here since the selectedNavigationItem setter surpresses it 369 364 // while the mouse is down to prevent sending it while scrubbing the bar. -
trunk/Source/WebInspectorUI/UserInterface/Views/RadioButtonNavigationItem.js
r249118 r256652 28 28 constructor(identifier, toolTip, image, imageWidth, imageHeight) 29 29 { 30 super(identifier, toolTip, image, imageWidth, imageHeight, null,"tab");30 super(identifier, toolTip, image, imageWidth, imageHeight, "tab"); 31 31 } 32 32 … … 43 43 this.element.classList.add(WI.RadioButtonNavigationItem.SelectedStyleClassName); 44 44 this.element.setAttribute("aria-selected", "true"); 45 this.element.tabIndex = 0; 45 46 } else { 46 47 this.element.classList.remove(WI.RadioButtonNavigationItem.SelectedStyleClassName); 47 48 this.element.setAttribute("aria-selected", "false"); 49 this.element.tabIndex = -1; 48 50 } 49 51 }
Note: See TracChangeset
for help on using the changeset viewer.