feat(web/m7-364): drawer focus management + grip Enter/Space handling

This commit is contained in:
2026-05-03 22:23:20 -04:00
parent d83b3eab25
commit 22e3f67411
3 changed files with 36 additions and 0 deletions
@@ -41,6 +41,11 @@
} else if (e.key === 'ArrowDown') {
e.preventDefault();
moveQueueItem(index, index + 1);
} else if (e.key === ' ' || e.key === 'Enter') {
// Reorder activates via arrow keys, not Space/Enter. Prevent
// default so Space doesn't scroll the queue list and Enter doesn't
// fire the button's no-op click.
e.preventDefault();
}
}
</script>
@@ -53,6 +58,7 @@
<button
type="button"
aria-label="Reorder track (use arrow keys)"
aria-keyshortcuts="ArrowUp ArrowDown"
onkeydown={handleHandleKeydown}
class="cursor-grab text-text-secondary hover:text-text-primary flex-shrink-0"
>