mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +02:00
Update SpeechRecognition.tsx
This commit is contained in:
parent
6686126dc0
commit
0b35dbe196
1 changed files with 2 additions and 0 deletions
|
@ -68,7 +68,9 @@ const useSpeechRecognition = (ask) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
console.log('Setting up hotkeys');
|
||||||
hotkeys('shift+alt+l', (event, handler) => {
|
hotkeys('shift+alt+l', (event, handler) => {
|
||||||
|
console.log('Hotkey triggered');
|
||||||
if (isSpeechSupported) {
|
if (isSpeechSupported) {
|
||||||
toggleListening();
|
toggleListening();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue