feat: 聊天输入框允许右键

pull/81/head
moonrailgun 3 years ago
parent 2ad682b17f
commit 6d8d260b42

@ -1,5 +1,6 @@
import { UserListItem } from '@/components/UserListItem';
import { getMessageTextDecorators } from '@/plugin/common';
import { stopPropagation } from '@/utils/dom-helper';
import React from 'react';
import { Mention, MentionsInput } from 'react-mentions';
import { t } from 'tailchat-shared';
@ -35,6 +36,7 @@ export const ChatInputBoxInput: React.FC<ChatInputBoxInputProps> = React.memo(
}
onKeyDown={props.onKeyDown}
onPaste={props.onPaste}
onContextMenu={stopPropagation}
allowSuggestionsAboveCursor={true}
forceSuggestionsAboveCursor={true}
>

Loading…
Cancel
Save