Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix p hotkey
  • Loading branch information
NilsGolembiewski committed Aug 28, 2025
commit d2822436fbb2c991342f4cc4a76b32985ab33c0e
8 changes: 7 additions & 1 deletion frontend/src/components/chat/MessageComposer/VoiceButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ const VoiceButton = ({ disabled }: Props) => {

useHotkeys(
'p',
() => {
(e: KeyboardEvent) => {
const target = (e?.target as HTMLElement) || null;
const tagName = target?.tagName;
const isTyping =
tagName === 'INPUT' || tagName === 'TEXTAREA' || target?.isContentEditable;
if (isTyping) return;

if (!isEnabled) return;
if (audioConnection === 'on') return endConversation();
return startConversation();
Expand Down