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
parent
39a5a1e311
commit
d068cb1939
|
@ -452,7 +452,7 @@ export const ComposePost = observer(function ComposePost({
|
||||||
<OpenCameraBtn gallery={gallery} />
|
<OpenCameraBtn gallery={gallery} />
|
||||||
</>
|
</>
|
||||||
) : null}
|
) : null}
|
||||||
{isDesktop ? <EmojiPickerButton /> : null}
|
{!isMobile ? <EmojiPickerButton /> : null}
|
||||||
<View style={s.flex1} />
|
<View style={s.flex1} />
|
||||||
<SelectLangBtn />
|
<SelectLangBtn />
|
||||||
<CharProgress count={graphemeLength} />
|
<CharProgress count={graphemeLength} />
|
||||||
|
|
|
@ -134,7 +134,7 @@ const MentionList = forwardRef<MentionListRef, SuggestionProps>(
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
if (event.key === 'Enter') {
|
if (event.key === 'Enter' || event.key === 'Tab') {
|
||||||
enterHandler()
|
enterHandler()
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue