diff --git a/src/view/com/composer/videos/SubtitleDialog.tsx b/src/view/com/composer/videos/SubtitleDialog.tsx index 90a29b25..9cd8eae4 100644 --- a/src/view/com/composer/videos/SubtitleDialog.tsx +++ b/src/view/com/composer/videos/SubtitleDialog.tsx @@ -1,5 +1,5 @@ import React, {useCallback} from 'react' -import {StyleProp, View, ViewStyle} from 'react-native' +import {Keyboard, StyleProp, View, ViewStyle} from 'react-native' import RNPickerSelect from 'react-native-picker-select' import {msg, Trans} from '@lingui/macro' import {useLingui} from '@lingui/react' @@ -45,7 +45,10 @@ export function SubtitleDialogBtn(props: Props) { size="xsmall" color="secondary" variant="ghost" - onPress={control.open}> + onPress={() => { + if (Keyboard.isVisible()) Keyboard.dismiss() + control.open() + }}> {isWeb ? Captions & alt text : Alt text}