()
| 231 | ); |
| 232 | |
| 233 | const copySelection = () => { |
| 234 | const selection = nextTerminal.getSelection(); |
| 235 | if (selection) { |
| 236 | copyToClipboard(selection); |
| 237 | } |
| 238 | }; |
| 239 | |
| 240 | // There is no way to remove this handler, so we must attach it once and |
| 241 | // rely on a ref to send it to the current socket. |