From 789928d542d4afd434d707c2ab14a28cd36235a1 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Fri, 20 Aug 2021 23:47:06 +0300 Subject: [PATCH] Composer: Prevent Alt+Up from editing the last message (#1406) --- src/components/middle/composer/MessageInput.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/middle/composer/MessageInput.tsx b/src/components/middle/composer/MessageInput.tsx index 7c763726..dcfab0ca 100644 --- a/src/components/middle/composer/MessageInput.tsx +++ b/src/components/middle/composer/MessageInput.tsx @@ -256,7 +256,7 @@ const MessageInput: FC = ({ closeTextFormatter(); onSend(); } - } else if (e.key === 'ArrowUp' && !html.length && !e.metaKey) { + } else if (e.key === 'ArrowUp' && !html.length && !e.metaKey && !e.altKey) { e.preventDefault(); editLastMessage(); } else {