# Fix new-thread shortcuts when terminal is focused · screen/t3code-personal

[View on GitCafe](https://git.cafe/screen/t3code-personal/commit/fcbf3f3c225ab41c44af3759ae27d8520ced61a4)

Repository: [screen/t3code-personal](https://git.cafe/screen/t3code-personal)

Visibility: public

Requested revision: fcbf3f3c225ab41c44af3759ae27d8520ced61a4

Requested commit: fcbf3f3c225ab41c44af3759ae27d8520ced61a4

Commit: fcbf3f3c225ab41c44af3759ae27d8520ced61a4

Tree: d85a771d4b2672fd10632a0c20e3ca2403a4af27

Author: Julius Marminge

Committer: Julius Marminge

## Message

```
Fix new-thread shortcuts when terminal is focused

- move chat-wide key handling into `_chat` route-level shortcut handler
- extract reusable `useHandleNewThread` hook and `isTerminalFocused` helper
- update browser WS fixture to support `terminalOpen` RPC shape

```

## Parents

- [ab0002f99d6fb5555c57bc91f696e6a9f8f4dfd7](https://git.cafe/screen/t3code-personal/commit/ab0002f99d6fb5555c57bc91f696e6a9f8f4dfd7?format=markdown)

[Source at this commit](https://git.cafe/screen/t3code-personal/tree/fcbf3f3c225ab41c44af3759ae27d8520ced61a4?format=markdown)
