about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2023-12-20 16:55:29 -0800
committerGitHub <noreply@github.com>2023-12-20 16:55:29 -0800
commitd068cb19392965f9b96e113ca2ba0fceb8326db5 (patch)
tree5fc1e064aa554d14d9433d29185d303290c62dbf
parent39a5a1e3111adf469f5e23ee9a0462416f1c27ec (diff)
downloadvoidsky-d068cb19392965f9b96e113ca2ba0fceb8326db5.tar.zst
Web composer improvements (#2257)
* Keep the emoji picker in the tablet width (close #1880)

* Support pressing tab to select a mention (close #1831)
-rw-r--r--src/view/com/composer/Composer.tsx2
-rw-r--r--src/view/com/composer/text-input/web/Autocomplete.tsx2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/view/com/composer/Composer.tsx b/src/view/com/composer/Composer.tsx
index c4453e0c3..64427b837 100644
--- a/src/view/com/composer/Composer.tsx
+++ b/src/view/com/composer/Composer.tsx
@@ -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} />
diff --git a/src/view/com/composer/text-input/web/Autocomplete.tsx b/src/view/com/composer/text-input/web/Autocomplete.tsx
index 1f7412561..51197b8e4 100644
--- a/src/view/com/composer/text-input/web/Autocomplete.tsx
+++ b/src/view/com/composer/text-input/web/Autocomplete.tsx
@@ -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
         }