Skip to content

Commit

Permalink
el.CPU.prevFocus() didn't go until the first panel
Browse files Browse the repository at this point in the history
Keys ↑ and ↓ mapped onto chapters, then on playlist #108
  • Loading branch information
dascritch committed Apr 2, 2021
1 parent bf4c359 commit c85f2a9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,10 @@ When the interface got the focus, you can use those keys :
* <kbd>↖</kbd> : back to start
* <kbd>End</kbd> : to the end, finish playing, ev. skip to the sound in playlist
* <kbd>Escape</kbd> : back to start, stop playing
* <kbd>↑</kbd> : move focus between entries in panels
* <kbd>↓</kbd> : move focus between entries in panels

For handheld users, a long press on the timeline will show you another interface for a more precise navigation.
For handheld users, a long press on the timeline will show you another interface for a more precise navigation (Desktop users can try it via a right click on it).


Some links
Expand All @@ -108,7 +110,7 @@ Some links
* [How to cite a podcast](https://www.buzzsprout.com/blog/cite-podcast), now you can support time positions URL
* Main author : [Xavier "dascritch" Mouton-Dubosc](http://dascritch.com)

Version : 6.99.1 [Licence GPL 3](LICENSE)
Version : 6.99.2 [Licence GPL 3](LICENSE)


Participate
Expand Down
4 changes: 3 additions & 1 deletion RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
RELEASE NOTES actual, 6.99.1
RELEASE NOTES actual, 6.99.2
============================

New features
Expand All @@ -9,6 +9,8 @@ New features
* Possibility to change css breakpoints ([#51](#51)) by this way ([#56](#56))
* Possibility to create RTL version ([#26](#26)) by this way ([#56](#56))
* A11y : Support reduced motion preferences
* Adding support for ↑ and ↓ keys, moving focus among panels
* Adding support for prevcue/nextcue facultative buttons
* Added method `Element.CPU.bulkPoints()`
* Added a more visible focus outline, stylable via`--cpu-focus-outline` ([#116](#116))
* Some examples added
Expand Down
2 changes: 1 addition & 1 deletion src/element_cpu.js
Original file line number Diff line number Diff line change
Expand Up @@ -1512,7 +1512,7 @@ function relativeFocus(self, go_foward) {
};

const scanToPrevPlane = (fromPlane) => {
for(let id = planeNames.indexOf(fromPlane) -1; id > 0 ; id--) {
for(let id = planeNames.indexOf(fromPlane) -1; id >= 0 ; id--) {
let out = planeNames[id];
if (validPlane(out)) {
return out;
Expand Down

0 comments on commit c85f2a9

Please sign in to comment.