MCPcopy Index your code
hub / github.com/NativeScript/NativeScript / dismissKeyboard

Function dismissKeyboard

packages/core/utils/index.android.ts:228–239  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

226}
227
228export function dismissKeyboard() {
229 dismissSoftInput();
230 const modalDialog = (topmost()?._modalParent ?? (topmost()?.modal as any))?._dialogFragment?.getDialog();
231 const view = modalDialog ?? androidUtils.getCurrentActivity();
232 if (view) {
233 const focus = view.getCurrentFocus();
234
235 if (focus) {
236 focus.clearFocus();
237 }
238 }
239}
240
241export function copyToClipboard(value: string) {
242 try {

Callers

nothing calls this directly

Calls 2

topmostFunction · 0.90
dismissSoftInputFunction · 0.70

Tested by

no test coverage detected