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

41 lines
1.5 KiB
TypeScript
Raw Permalink Normal View History

2026-10-13 12:43:34 +00:00
// Module ID: 12448
// Function ID: 12449
2026-07-20 16:05:17 +00:00
// Name: openCustomKeyboard
2026-10-13 12:43:34 +00:00
// Dependencies: [1501, 6726, 4988, 11952, 2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-10-13 12:43:34 +00:00
// Module 12448 (openCustomKeyboard)
2026-10-09 10:00:15 +00:00
import KeyboardUIStore from "KeyboardUIStore" /* 1501 */;
2026-10-10 08:08:14 +00:00
import PortalKeyboardUIStore from "PortalKeyboardUIStore" /* 4988 */;
2026-10-12 06:59:38 +00:00
import RunAfterInteractionsUtils from "RunAfterInteractionsUtils" /* 6726 */;
2026-10-13 12:43:34 +00:00
import ChatInputNativeCommandsDefault from "ChatInputNativeCommands" /* 11952 */;
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-10-03 08:58:59 +00:00
let keyboardParams;
let ref;
let ref2;
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;
2026-10-03 08:58:59 +00:00
let obj = KeyboardUIStore;
obj.setKeyboardType(keyboardParams);
let obj2 = RunAfterInteractionsUtils;
obj2.runAfterInteractions(() => {
const current = importDefault.current;
2026-07-20 16:05:17 +00:00
current.blur();
2026-10-03 08:58:59 +00:00
const tmp = importDefault;
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
}
2026-10-03 08:58:59 +00:00
const obj = PortalKeyboardUIStore;
obj.openPortalKeyboard(keyboardParams.type, require, tmp);
const obj2 = ChatInputNativeCommandsDefault;
obj2.openCustomKeyboard(dependencyMap.current);
2026-07-20 16:05:17 +00:00
});
};