# terminal: Forward Shift navigation keys to alternate-screen programs \(\#57479\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/6726b15fce90ab6f6a650204b7da23a0a398320b)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 6726b15fce90ab6f6a650204b7da23a0a398320b

Requested commit: 6726b15fce90ab6f6a650204b7da23a0a398320b

Commit: 6726b15fce90ab6f6a650204b7da23a0a398320b

Tree: 382a15bc36e81ac265b1f2abb7dcca0f224d45ef

Author: Smit Barmase

Committer: GitHub

## Message

```
terminal: Forward Shift navigation keys to alternate-screen programs (#57479)

I ran into this while using lazygit: the Shift navigation keys were
being captured by Zed to scroll the terminal buffer instead of being
passed through to the program.

Capturing them makes sense in the normal terminal case, where the user
wants to scroll and Shift has no other meaning. But in alternate-screen
TUIs like lazygit, less, or neovim, terminal scrollback isn't relevant,
so we can forward these keys to the program while it's open.

Release Notes:
- Fixed Shift+Up, Shift+Down, Shift+Home, and Shift+End in terminal TUIs
like lazygit, less, and neovim.

---------

Co-authored-by: John Tur <john-tur@outlook.com>
```

## Parents

- [bedfe32fdc51df8272663481de3e2f7cc8fb541c](https://git.cafe/gitcafe/zed/commit/bedfe32fdc51df8272663481de3e2f7cc8fb541c?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/6726b15fce90ab6f6a650204b7da23a0a398320b?format=markdown)
