From ca6736f89256d070a894f8b55f7c1c47d3a10fef Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 13 Oct 2024 23:31:35 +0300 Subject: [PATCH] web/roomview: don't focus input when copying text --- web/src/ui/RoomView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/ui/RoomView.tsx b/web/src/ui/RoomView.tsx index a4ff213..9f01b5c 100644 --- a/web/src/ui/RoomView.tsx +++ b/web/src/ui/RoomView.tsx @@ -44,7 +44,7 @@ const RoomHeader = ({ room }: RoomViewProps) => { } const onKeyDownRoomView = (evt: React.KeyboardEvent) => { - if (evt.target === evt.currentTarget) { + if (evt.target === evt.currentTarget && !evt.ctrlKey && !evt.altKey) { document.getElementById("message-composer")?.focus() } }