about summary refs log tree commit diff
path: root/src/view/com/composer/text-input/TextInput.tsx
diff options
context:
space:
mode:
authorrenahlee <renahlee@outlook.com>2023-04-19 10:51:33 -0700
committerrenahlee <renahlee@outlook.com>2023-04-19 11:58:04 -0700
commit31df05825ca21df7b0108e200681d6c2ab83fe33 (patch)
tree327bd4db8727c4e0b115725f30a7c7616e788f41 /src/view/com/composer/text-input/TextInput.tsx
parent8917cf77a0a73e38ad769cea090591c229d5a868 (diff)
downloadvoidsky-31df05825ca21df7b0108e200681d6c2ab83fe33.tar.zst
Support CMD + Enter to publish post
Diffstat (limited to 'src/view/com/composer/text-input/TextInput.tsx')
-rw-r--r--src/view/com/composer/text-input/TextInput.tsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/view/com/composer/text-input/TextInput.tsx b/src/view/com/composer/text-input/TextInput.tsx
index 9c111bd38..10ac52b5d 100644
--- a/src/view/com/composer/text-input/TextInput.tsx
+++ b/src/view/com/composer/text-input/TextInput.tsx
@@ -34,6 +34,7 @@ interface TextInputProps {
   autocompleteView: UserAutocompleteModel
   setRichText: (v: RichText) => void
   onPhotoPasted: (uri: string) => void
+  onPressPublish: (richtext: RichText) => Promise<false | undefined>
   onSuggestedLinksChanged: (uris: Set<string>) => void
   onError: (err: string) => void
 }