{"version":3,"file":"is-keyboard-accessible.mjs","sources":["../../../../../src/gestures/press/utils/is-keyboard-accessible.ts"],"sourcesContent":["const interactiveElements = new Set([\n \"BUTTON\",\n \"INPUT\",\n \"SELECT\",\n \"TEXTAREA\",\n \"A\",\n])\n\n/**\n * Checks if an element is an interactive form element that should prevent\n * drag gestures from starting when clicked.\n *\n * This specifically targets form controls, buttons, and links - not just any\n * element with tabIndex, since motion elements with tap handlers automatically\n * get tabIndex=0 for keyboard accessibility.\n */\nexport function isElementKeyboardAccessible(element: Element) {\n return (\n interactiveElements.has(element.tagName) ||\n (element as HTMLElement).isContentEditable === true\n )\n}\n"],"names":[],"mappings":"AAAA,MAAM,mBAAmB,GAAG,IAAI,GAAG,CAAC;IAChC,QAAQ;IACR,OAAO;IACP,QAAQ;IACR,UAAU;IACV,GAAG;AACN,CAAA,CAAC,CAAA;AAEF;;;;;;;AAOG;AACG,SAAU,2BAA2B,CAAC,OAAgB,EAAA;IACxD,QACI,mBAAmB,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC;AACvC,QAAA,OAAuB,CAAC,iBAAiB,KAAK,IAAI,EACtD;AACL;;;;"}