@touchcastllc/napster-companion-api-dev 2.1.0-alpha.0 → 2.1.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/button/trigger.d.ts +2 -0
- package/lib/index.esm.js +1 -1
- package/lib/index.js +1 -1
- package/lib/index.standalone.js +1 -1
- package/lib/utils/tabStartGuard.d.ts +16 -0
- package/package.json +1 -1
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Keeps Tab inside the widget after a click on empty space in it (CA-1141,
|
|
3
|
+
* tester's comment).
|
|
4
|
+
*
|
|
5
|
+
* Firefox starts sequential focus navigation from the selection, not from
|
|
6
|
+
* the clicked point, and a click on empty space snaps the selection into the
|
|
7
|
+
* nearest leaf, which next to the control bar is a button's icon. A click
|
|
8
|
+
* under the bar put it in "End session", the last button on the page, so the
|
|
9
|
+
* next Tab left the page for the browser's tab strip; a click above it
|
|
10
|
+
* skipped "Mute sound". Chrome and Safari start from the clicked node, where
|
|
11
|
+
* no button holds the selection, so this never acts there.
|
|
12
|
+
*
|
|
13
|
+
* The selection is moved to the start of the button's control group, or just
|
|
14
|
+
* before a button that has none, so Tab reaches the first control.
|
|
15
|
+
*/
|
|
16
|
+
export declare function guardTabStart(root: HTMLElement): void;
|