decord/source/modules/keyboard/native/openCustomKeyboard.android.tsx

33 lines
1.3 KiB
TypeScript
Raw Normal View History

// Module ID: 12158
// Function ID: 12159
2026-07-20 16:05:17 +00:00
// Name: openCustomKeyboard
// Dependencies: [1481, 7141, 4505, 12117, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
// Module 12158 (openCustomKeyboard)
import KeyboardUIStore from "KeyboardUIStore" /* 1481 */;
import PortalKeyboardUIStore from "PortalKeyboardUIStore" /* 4505 */;
import RunAfterInteractionsUtils from "RunAfterInteractionsUtils" /* 7141 */;
import ChatInputNativeCommandsDefault from "ChatInputNativeCommands" /* 12117 */;
import size from "module_2" /* 2 */;
2026-08-24 06:08:38 +00:00
const result = size.fileFinishedImporting("modules/keyboard/native/openCustomKeyboard.android.tsx");
2026-07-20 16:05:17 +00:00
export default function openCustomKeyboard(secondaryTextFieldRef) {
2026-07-23 10:11:24 +00:00
({ channelId: require, chatInputRef: importDefault, chatInputNativeRef: dependencyMap, keyboardParams } = secondaryTextFieldRef);
2026-07-20 16:05:17 +00:00
secondaryTextFieldRef = secondaryTextFieldRef.secondaryTextFieldRef;
KeyboardUIStore.setKeyboardType(keyboardParams);
RunAfterInteractionsUtils.runAfterInteractions(() => {
2026-07-20 16:05:17 +00:00
const current = ref.current;
current.blur();
2026-07-29 08:29:29 +00:00
if (secondaryTextFieldRef != null) {
2026-07-20 16:05:17 +00:00
const current2 = secondaryTextFieldRef.current;
2026-07-29 08:29:29 +00:00
if (current2 != null) {
current2.blur();
}
2026-07-20 16:05:17 +00:00
}
PortalKeyboardUIStore.openPortalKeyboard(keyboardParams.type, closure_1_0, ref);
ChatInputNativeCommandsDefault.openCustomKeyboard(ref2.current);
2026-07-20 16:05:17 +00:00
});
};