Update SpeechRecognition.tsx

This commit is contained in:
bsu3338 2023-08-09 15:21:24 -05:00 committed by GitHub
parent c02d43bd36
commit c7ffb25217
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -65,7 +65,7 @@ const useSpeechRecognition = (ask) => {
}
};
const handleKeyDown = (event) => {
const handleKeyDown = (e) => {
if (e.shiftKey && e.altKey && e.key === 'L') {
if (isSpeechSupported) {
toggleListening();