Skip to content

Commit 1e0bfb8

Browse files
committed
fix duplicated functions
1 parent 0a9e10f commit 1e0bfb8

File tree

1 file changed

+0
-30
lines changed

1 file changed

+0
-30
lines changed

frontend/src/features/crawl-workflows/workflow-tag-filter.ts

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -267,36 +267,6 @@ export class WorkflowTagFilter extends BtrixElement {
267267
268268
this.selected.set(value, checked);
269269
}}
270-
@keydown=${(e: KeyboardEvent) => {
271-
if (!this.checkboxes.length) return;
272-
273-
// Enable focus trapping
274-
const options = Array.from(this.checkboxes);
275-
const focused = options.findIndex((opt) => opt.matches(":focus"));
276-
277-
switch (e.key) {
278-
case "ArrowDown": {
279-
e.preventDefault();
280-
options[
281-
focused === -1 || focused === options.length - 1
282-
? 0
283-
: focused + 1
284-
].focus();
285-
break;
286-
}
287-
case "ArrowUp": {
288-
e.preventDefault();
289-
options[
290-
focused === -1 || focused === 0
291-
? options.length - 1
292-
: focused - 1
293-
].focus();
294-
break;
295-
}
296-
default:
297-
break;
298-
}
299-
}}
300270
>
301271
${repeat(
302272
opts,

0 commit comments

Comments
 (0)