Composer: Prevent Alt+Up from editing the last message (#1406)

This commit is contained in:
Alexander Zinchuk 2021-08-20 23:47:06 +03:00
parent 97453fec52
commit 789928d542

View File

@ -256,7 +256,7 @@ const MessageInput: FC<OwnProps & StateProps & DispatchProps> = ({
closeTextFormatter(); closeTextFormatter();
onSend(); onSend();
} }
} else if (e.key === 'ArrowUp' && !html.length && !e.metaKey) { } else if (e.key === 'ArrowUp' && !html.length && !e.metaKey && !e.altKey) {
e.preventDefault(); e.preventDefault();
editLastMessage(); editLastMessage();
} else { } else {