Update SpeechRecognition.tsx

This commit is contained in:
bsu3338 2023-09-03 23:04:50 -05:00 committed by GitHub
parent 6686126dc0
commit 0b35dbe196
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,7 +68,9 @@ const useSpeechRecognition = (ask) => {
};
useEffect(() => {
console.log('Setting up hotkeys');
hotkeys('shift+alt+l', (event, handler) => {
console.log('Hotkey triggered');
if (isSpeechSupported) {
toggleListening();
}