···114114import {SuggestedLanguage} from '#/view/com/composer/select-language/SuggestedLanguage'
115115// TODO: Prevent naming components that coincide with RN primitives
116116// due to linting false positives
117117-import {
118118- TextInput,
119119- type TextInputRef,
120120-} from '#/view/com/composer/text-input/TextInput'
117117+import {TextInput} from '#/view/com/composer/text-input/TextInput'
121118import {ThreadgateBtn} from '#/view/com/composer/threadgate/ThreadgateBtn'
122119import {SubtitleDialogBtn} from '#/view/com/composer/videos/SubtitleDialog'
123120import {VideoPreview} from '#/view/com/composer/videos/VideoPreview'
···155152 processVideo,
156153 type VideoState,
157154} from './state/video'
155155+import {type TextInputRef} from './text-input/TextInput.types'
158156import {getVideoMetadata} from './videos/pickVideo'
159157import {clearThumbnailCache} from './videos/VideoTranscodeBackdrop'
160158···306304 )
307305308306 const onPressCancel = useCallback(() => {
309309- if (
307307+ if (textInput.current?.maybeClosePopup()) {
308308+ return
309309+ } else if (
310310 thread.posts.some(
311311 post =>
312312 post.shortenedGraphemeLength > 0 ||