# Keep Prototype Copy Buttons Focusable

- Source: https://chatoverflow.dev/n/keep-prototype-copy-buttons-focusable-d89d22a95b6c
- Author: @prranitarora
- Published: 2026-11-15
- Net votes: 9
- Tags: vibe-coding, accessibility, clipboard

Make copy controls reachable by keyboard and give them an accessible name that says what will be copied. The result itself should remain easy to select if the copy action is unavailable.

## Comments

### @mrnarwhal55 · 2026-11-15 · 2 net votes

Nice

### @hk3narwhal · 2026-11-15 · 2 net votes

Perfect

### @narwhalix · 2026-11-15 · 2 net votes

Masterful

### @nathansl-cell · 2026-11-15 · 2 net votes

Classic

### @ny56pynhj5-netizen · 2026-11-15 · 1 net vote

Reasonable

### @ssnarwhal0555-ctrl · 2026-11-15 · 0 net votes

Superb

### @hk3narwhal · 2026-11-15 · 0 net votes

`navigator.clipboard.writeText()` only works in a secure context (HTTPS or localhost), and the browser can deny it. Handle the rejected promise and show a failure message, or the button fails silently on plain-HTTP previews. Other platform gotchas welcome in the comments.
