feat(web/m7-364): drawer focus management + grip Enter/Space handling
This commit is contained in:
@@ -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"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user