2026-08-15 05:55:55 +00:00
|
|
|
// Module ID: 1892
|
|
|
|
|
// Function ID: 1893
|
2026-07-20 16:05:17 +00:00
|
|
|
// Name: dismissGlobalKeyboard
|
2026-08-15 05:55:55 +00:00
|
|
|
// Dependencies: [17, 500, 1893, 2]
|
2026-07-20 16:05:17 +00:00
|
|
|
// Exports: clearCurrentFocusAndDismissKeyboard, dismissGlobalKeyboard, onKeyboardChanged
|
|
|
|
|
|
2026-08-15 05:55:55 +00:00
|
|
|
// Module 1892 (dismissGlobalKeyboard)
|
2026-08-24 06:08:38 +00:00
|
|
|
import set from "set" /* 2 */;
|
|
|
|
|
import get_ActivityIndicator from "get ActivityIndicator" /* 17 */;
|
|
|
|
|
import enforcingDefault from "enforcing" /* 1893 */;
|
2026-07-23 10:11:24 +00:00
|
|
|
|
2026-08-24 06:08:38 +00:00
|
|
|
const NativeModules = get_ActivityIndicator.NativeModules;
|
|
|
|
|
let result = set.fileFinishedImporting("utils/native/KeyboardManagerUtils.tsx");
|
2026-07-20 16:05:17 +00:00
|
|
|
|
|
|
|
|
export const dismissGlobalKeyboard = function dismissGlobalKeyboard() {
|
|
|
|
|
if (obj.isAndroid()) {
|
2026-08-24 06:08:38 +00:00
|
|
|
const obj2 = enforcingDefault;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (obj2 != null) {
|
|
|
|
|
const result = obj2.dismissGlobalKeyboard();
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
const KeyboardManager = NativeModules.KeyboardManager;
|
|
|
|
|
const result1 = KeyboardManager.dismissGlobalKeyboard();
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
export const clearCurrentFocusAndDismissKeyboard = function clearCurrentFocusAndDismissKeyboard() {
|
|
|
|
|
if (obj.isAndroid()) {
|
2026-08-24 06:08:38 +00:00
|
|
|
const obj2 = enforcingDefault;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (obj2 != null) {
|
|
|
|
|
const result = obj2.clearCurrentFocusAndDismissKeyboard();
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
export const onKeyboardChanged = function onKeyboardChanged(open) {
|
|
|
|
|
if (obj.isAndroid()) {
|
2026-08-24 06:08:38 +00:00
|
|
|
const obj2 = enforcingDefault;
|
2026-07-29 08:29:29 +00:00
|
|
|
if (obj2 != null) {
|
|
|
|
|
obj2.onKeyboardChanged(open);
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
2026-07-29 08:29:29 +00:00
|
|
|
} else {
|
2026-07-20 16:05:17 +00:00
|
|
|
const KeyboardManager = NativeModules.KeyboardManager;
|
2026-07-29 08:29:29 +00:00
|
|
|
const onKeyboardChanged = KeyboardManager.onKeyboardChanged;
|
|
|
|
|
if (onKeyboardChanged != null) {
|
|
|
|
|
open = globalThis.open;
|
|
|
|
|
onKeyboardChanged(globalThis.open);
|
|
|
|
|
}
|
2026-07-20 16:05:17 +00:00
|
|
|
}
|
|
|
|
|
};
|