Defer to default keybindings for alt + enter

This commit is contained in:
Grace Shaw 2020-09-14 15:27:16 -07:00 committed by GitHub
parent b19a7675a5
commit 8b7db94882
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -639,7 +639,7 @@ export const CompositionInput = ({
return 'enter-emoji';
}
if (e.key === 'Enter' && !e.shiftKey) {
if (e.key === 'Enter' && !e.shiftKey && !e.altKey) {
if (large && !(controlKey || commandKey)) {
return getDefaultKeyBinding(e);
}