Build NapCat Artifacts / Windows Loader Test (push) Canceled after 0s
Build NapCat Artifacts / Type Check & Test (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Framework (push) Canceled after 0s
Build NapCat Artifacts / Build NapCat.Shell (push) Canceled after 0s
14 lines
285 B
Plaintext
14 lines
285 B
Plaintext
const focusableElements = new Set([
|
|
"BUTTON",
|
|
"INPUT",
|
|
"SELECT",
|
|
"TEXTAREA",
|
|
"A",
|
|
]);
|
|
function isElementKeyboardAccessible(element) {
|
|
return (focusableElements.has(element.tagName) ||
|
|
element.tabIndex !== -1);
|
|
}
|
|
|
|
export { isElementKeyboardAccessible };
|