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.

Handle backtick earlier + Ignore commands when cmd/atl is pressed + prevent -0.0 as subtitle delay

authored by

Isra and committed by
Pas
9da14044 67aba5f7

+9 -2
+5 -1
src/components/player/atoms/settings/CaptionSettingsView.tsx
··· 182 182 setIsFocused(true); 183 183 }} 184 184 > 185 - {textTransformer(props.value.toFixed(props.decimalsAllowed ?? 0))} 185 + {textTransformer( 186 + props.value.toFixed(props.decimalsAllowed ?? 0) === "-0.0" 187 + ? "0.0" 188 + : props.value.toFixed(props.decimalsAllowed ?? 0), 189 + )} 186 190 </button> 187 191 )} 188 192
+4 -1
src/hooks/useGlobalKeyboardEvents.ts
··· 29 29 return; 30 30 } 31 31 32 + // Cancel if command or alt is pressed 33 + if (event.metaKey || event.altKey) return; 34 + 32 35 // Handle backtick (`) key hold for keyboard commands 33 36 if (event.key === "`") { 34 37 // Prevent default browser behavior (console opening in some browsers) ··· 40 43 // Show modal after 500ms hold 41 44 holdTimeoutRef.current = setTimeout(() => { 42 45 showKeyboardCommands(); 43 - }, 500); 46 + }, 150); 44 47 } 45 48 } 46 49