Web composer improvements (#2257)

* Keep the emoji picker in the tablet width (close #1880)

* Support pressing tab to select a mention (close #1831)
zio/stable
Paul Frazee 2023-12-20 16:55:29 -08:00 committed by GitHub
parent 39a5a1e311
commit d068cb1939
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -452,7 +452,7 @@ export const ComposePost = observer(function ComposePost({
<OpenCameraBtn gallery={gallery} />
</>
) : null}
{isDesktop ? <EmojiPickerButton /> : null}
{!isMobile ? <EmojiPickerButton /> : null}
<View style={s.flex1} />
<SelectLangBtn />
<CharProgress count={graphemeLength} />

View File

@ -134,7 +134,7 @@ const MentionList = forwardRef<MentionListRef, SuggestionProps>(
return true
}
if (event.key === 'Enter') {
if (event.key === 'Enter' || event.key === 'Tab') {
enterHandler()
return true
}