{"version":3,"file":"a11y.cjs","sources":["../../src/functions/a11y/index.ts"],"sourcesContent":["/**\n * SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors\n * SPDX-License-Identifier: AGPL-3.0-or-later\n */\n\n/**\n * Return true if the DOM event is an accessible mouse or keyboard element activation, false otherwise\n *\n * @param {Event} event DOM event\n *\n * @return {boolean}\n */\nexport const isA11yActivation = (event: Event) => {\n\tif (event.type === 'click') {\n\t\treturn true\n\t}\n\tif (event.type === 'keydown' && (event as KeyboardEvent).key === 'Enter') {\n\t\treturn true\n\t}\n\treturn false\n}\n"],"names":[],"mappings":";;AAYa,MAAA,mBAAmB,CAAC,UAAiB;AAC7C,MAAA,MAAM,SAAS,SAAS;AACpB,WAAA;AAAA,EACR;AACA,MAAI,MAAM,SAAS,aAAc,MAAwB,QAAQ,SAAS;AAClE,WAAA;AAAA,EACR;AACO,SAAA;AACR;;"}