diff --git a/client/src/components/Input/TextChat.jsx b/client/src/components/Input/TextChat.jsx index 861b1784b7..fae5919a97 100644 --- a/client/src/components/Input/TextChat.jsx +++ b/client/src/components/Input/TextChat.jsx @@ -141,6 +141,11 @@ export default function TextChat({ isSearchView = false }) { if (e.key === 'Enter' && !e.shiftKey && !isComposing?.current) { submitMessage(); } + + if (e.shiftKey && e.altKey && e.key === 'L') { + toggleListening(e); + } + }; const handleKeyUp = (e) => { @@ -241,37 +246,12 @@ export default function TextChat({ isSearchView = false }) { disabled={disabled || isNotAppendable} className="m-0 flex h-auto max-h-52 flex-1 resize-none overflow-auto border-0 bg-transparent p-0 pl-2 pr-12 leading-6 placeholder:text-sm placeholder:text-gray-600 focus:outline-none focus:ring-0 focus-visible:ring-0 dark:bg-transparent dark:placeholder:text-gray-500 md:pl-2" /> - {isSpeechSupported && ( - - )}