Comments (2)
Ah yes, List View selectable row behavior. Of course, this is a must-have for any software purporting to honor Winamp. Something that Spotify does (YouTube Music doesn't and Rdio never did).
I've put it off until now, waiting for someone to request it. I want to hear from the people.
If I can piggyback the browser's built-in focus mechanism, then we get the "selection following" behavior for free...
from chip-player-js.
items = null; fidx = 0; listview = document.querySelector('.App-main-content-area'); window.addEventListener('keydown', e => { if (!['ArrowUp','ArrowDown'].includes(e.key)) return; e.preventDefault(); items = listview.querySelectorAll('a'); if (e.key === 'ArrowUp') { fidx = Math.max(0, fidx-1); } if (e.key === 'ArrowDown') { fidx = Math.min(items.length-1, fidx+1); } items.item(fidx).focus(); }); document.styleSheets[0].insertRule('.App-main-content-area>div>div>div:focus-within{box-shadow: 0 0 0 10px inset #66d6}');
from chip-player-js.
Related Issues (20)
- musician playalong mode / voice IDs- ideas HOT 1
- Sega Genesis: can't mute all channels HOT 4
- Invalid MIDIFileHeader : MThd prefix not found HOT 1
- Favorite button heart symbol is not visible in Safari
- Parent directory navigation is broken HOT 1
- Add opensearch/omnibox integration
- Repeat one not working for local files HOT 3
- Sega 32X PWM channel not working
- extremely high windows sample rates confuse some of the players. HOT 2
- Misidentified midi files.
- Auto fast forward trips midi feedback detection. HOT 2
- Notable missing soundfont HOT 2
- Missing fm bank.
- Error when attempting to play Theme Hospital MIDI files HOT 1
- no credit for the pc beep soundfont
- [Local Files] Improvements
- PSF Support HOT 4
- per-song URLs HOT 4
- MUS Support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chip-player-js.