From c81729bef17cfd8af4f2a47e055218a10b3167ac Mon Sep 17 00:00:00 2001 From: kartikvirendrar Date: Thu, 22 Feb 2024 11:20:10 +0530 Subject: [PATCH] increase seek duration of shift and arrow keys --- .../CL-Transcription/AllAudioTranscriptionLandingPage.jsx | 4 ++-- .../CL-Transcription/AudioTranscriptionLandingPage.jsx | 4 ++-- .../CL-Transcription/ReviewAudioTranscriptionLandingPage.jsx | 4 ++-- .../SuperCheckerAudioTranscriptionLandingPage.jsx | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/ui/pages/container/CL-Transcription/AllAudioTranscriptionLandingPage.jsx b/src/ui/pages/container/CL-Transcription/AllAudioTranscriptionLandingPage.jsx index efa8d0407..3e1dc205a 100644 --- a/src/ui/pages/container/CL-Transcription/AllAudioTranscriptionLandingPage.jsx +++ b/src/ui/pages/container/CL-Transcription/AllAudioTranscriptionLandingPage.jsx @@ -401,13 +401,13 @@ const AllAudioTranscriptionLandingPage = () => { if (event.shiftKey && event.key === 'ArrowLeft') { event.preventDefault(); if (player) { - player.currentTime = player.currentTime - 0.05; + player.currentTime = player.currentTime - 1.25; } } if (event.shiftKey && event.key === 'ArrowRight') { event.preventDefault(); if (player) { - player.currentTime = player.currentTime + 0.05; + player.currentTime = player.currentTime + 1.25; } } }; diff --git a/src/ui/pages/container/CL-Transcription/AudioTranscriptionLandingPage.jsx b/src/ui/pages/container/CL-Transcription/AudioTranscriptionLandingPage.jsx index 09d77211b..037affe6a 100644 --- a/src/ui/pages/container/CL-Transcription/AudioTranscriptionLandingPage.jsx +++ b/src/ui/pages/container/CL-Transcription/AudioTranscriptionLandingPage.jsx @@ -860,13 +860,13 @@ useEffect(() => { if (event.shiftKey && event.key === 'ArrowLeft') { event.preventDefault(); if(player){ - player.currentTime = player.currentTime - 0.05; + player.currentTime = player.currentTime - 1.25; } } if (event.shiftKey && event.key === 'ArrowRight') { event.preventDefault(); if(player){ - player.currentTime = player.currentTime + 0.05; + player.currentTime = player.currentTime + 1.25; } } }; diff --git a/src/ui/pages/container/CL-Transcription/ReviewAudioTranscriptionLandingPage.jsx b/src/ui/pages/container/CL-Transcription/ReviewAudioTranscriptionLandingPage.jsx index 251473239..d9542ba38 100644 --- a/src/ui/pages/container/CL-Transcription/ReviewAudioTranscriptionLandingPage.jsx +++ b/src/ui/pages/container/CL-Transcription/ReviewAudioTranscriptionLandingPage.jsx @@ -1057,13 +1057,13 @@ useEffect(() => { if (event.shiftKey && event.key === 'ArrowLeft') { event.preventDefault(); if(player){ - player.currentTime = player.currentTime - 0.05; + player.currentTime = player.currentTime - 1.25; } } if (event.shiftKey && event.key === 'ArrowRight') { event.preventDefault(); if(player){ - player.currentTime = player.currentTime + 0.05; + player.currentTime = player.currentTime + 1.25; } } }; diff --git a/src/ui/pages/container/CL-Transcription/SuperCheckerAudioTranscriptionLandingPage.jsx b/src/ui/pages/container/CL-Transcription/SuperCheckerAudioTranscriptionLandingPage.jsx index 765d65d71..25d7f2a21 100644 --- a/src/ui/pages/container/CL-Transcription/SuperCheckerAudioTranscriptionLandingPage.jsx +++ b/src/ui/pages/container/CL-Transcription/SuperCheckerAudioTranscriptionLandingPage.jsx @@ -905,13 +905,13 @@ useEffect(() => { if (event.shiftKey && event.key === 'ArrowLeft') { event.preventDefault(); if(player){ - player.currentTime = player.currentTime - 0.05; + player.currentTime = player.currentTime - 1.25; } } if (event.shiftKey && event.key === 'ArrowRight') { event.preventDefault(); if(player){ - player.currentTime = player.currentTime + 0.05; + player.currentTime = player.currentTime + 1.25; } } };