# fix\(web\): swallow key releases for presses the terminal never saw · stienswout/t3code

[View on GitCafe](https://git.cafe/stienswout/t3code/commit/748d3a9da7cbf2cc504c0fdd8a045b787feaf72b)

Repository: [stienswout/t3code](https://git.cafe/stienswout/t3code)

Visibility: public

Requested revision: 748d3a9da7cbf2cc504c0fdd8a045b787feaf72b

Requested commit: 748d3a9da7cbf2cc504c0fdd8a045b787feaf72b

Commit: 748d3a9da7cbf2cc504c0fdd8a045b787feaf72b

Tree: 48bf2631fdb46dd211cf8869899a557fb68a9119

Author: Wout Stiens

Committer: Wout Stiens

## Message

```
fix(web): swallow key releases for presses the terminal never saw

Keydowns handled outside the terminal (keybindings via beforeKey, copy
and paste shortcuts, AltGraph text) now record their physical code and
skip the matching keyup, so Kitty report-event-types sessions no longer
receive a release for a press that was suppressed locally. beforeKey is
not re-consulted on keyup because it runs side effects. Stale
suppressions are dropped on blur.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

```

## Parents

- [94e34c7dec76285264a0a743cf3f724b9e61d16f](https://git.cafe/stienswout/t3code/commit/94e34c7dec76285264a0a743cf3f724b9e61d16f?format=markdown)

[Source at this commit](https://git.cafe/stienswout/t3code/tree/748d3a9da7cbf2cc504c0fdd8a045b787feaf72b?format=markdown)
