PageSourceSearch

https://clawchats.app/assets/keyboardDismiss-BLF6c4Nb.js

js clawchats.app collected 2026-10-06 08:55:52 UTC 1,374 bytes, 29 lines download raw bytes

1//#region src/pages/meow/keyboardDismiss.ts
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"95747397c3502edd74658aeda96b061610458195"};var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="36dec1f5-68fa-424e-8430-dfdbcf3fc756",e._sentryDebugIdIdentifier="sentry-dbid-36dec1f5-68fa-424e-8430-dfdbcf3fc756");}catch(e){}}();var INTERACTIVE_TARGET_SELECTOR = [
3	"textarea",
4	"input",
5	"select",
6	"button",
7	"a",
8	"[role=\"button\"]",
9	"[contenteditable=\"true\"]",
10	"[data-keyboard-dismiss-ignore]"
11].join(",");
12function targetElement(target) {
13	if (target instanceof Element) return target;
14	if (target instanceof Node) return target.parentElement;
15	return null;
16}
17function shouldDismissKeyboardFromPointerTarget(target) {
18	const element = targetElement(target);
19	if (!element) return true;
20	return !element.closest(INTERACTIVE_TARGET_SELECTOR);
21}
22function blurTextareasOnBlankPointerDown(event, textareas) {
23	if (!shouldDismissKeyboardFromPointerTarget(event.target)) return;
24	for (const textarea of textareas) textarea.current?.blur();
25}
26
27//#endregion
28export { shouldDismissKeyboardFromPointerTarget as n, blurTextareasOnBlankPointerDown as t };
29//# sourceMappingURL=keyboardDismiss-BLF6c4Nb.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.