pstream is dead; long live pstream taciturnaxolotl.github.io/pstream-ng/
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

disable 0-9 keyboard shortcuts when ctrl or meta is held

Pas 09f48bae c6873907

+6 -1
+6 -1
src/components/player/internals/KeyboardEvents.tsx
··· 265 265 dataRef.current.display?.setTime(dataRef.current.time - 1); 266 266 267 267 // Skip to percentage with number keys (0-9) 268 - if (/^[0-9]$/.test(k) && dataRef.current.duration > 0) { 268 + if ( 269 + /^[0-9]$/.test(k) && 270 + dataRef.current.duration > 0 && 271 + !evt.ctrlKey && 272 + !evt.metaKey 273 + ) { 269 274 const percentage = parseInt(k, 10) * 10; // 0 = 0%, 1 = 10%, 2 = 20%, ..., 9 = 90% 270 275 const targetTime = (dataRef.current.duration * percentage) / 100; 271 276 dataRef.current.display?.setTime(targetTime);