# Using the keyboard

Discover shortcuts as you go and navigate Chonk with the keyboard.

## Shortcut hints

Press <kbd>/</kbd> to show contextual keyboard shortcut hints. Chonk shows hints beside the controls they apply to, so you can use shortcuts without memorizing a list. Once you feel confident, press <kbd>/</kbd> again to hide the hints.

<img src="/images/screenshots/docs/shortcut-hints.png" alt="Keyboard shortcut hints D, C, and O beside Discussion, Changes, and Commits" width="291">

In the menu below, the shortcut hint beside **Done** means you can press <span class="kbd-group"><kbd>Shift</kbd> <kbd>D</kbd></span> even when the menu is closed. The plain L beside **Copy GitHub link** works only while the menu is open.

<img src="/images/screenshots/docs/menu-shortcuts.png" alt="A menu with shortcut hints for Done and Mark for later, and plain letters for Copy GitHub link and Open on GitHub" width="181">

## The keyboard cursor

If you like, you can also scroll using the keyboard. Press <kbd>J</kbd> / <kbd>K</kbd> to move the cursor down or up. As the cursor approaches the edge of the view, the page scrolls in that direction. Press <kbd>W</kbd> to switch focus between panes.

These shortcuts are also available:

- <span class="kbd-group"><kbd>Ctrl</kbd> <kbd>K</kbd></span> / <span class="kbd-group"><kbd>Ctrl</kbd> <kbd>M</kbd></span> / <span class="kbd-group"><kbd>Ctrl</kbd> <kbd>J</kbd></span> – Move the cursor to the top, middle, or bottom.
- <span class="kbd-group"><kbd>Ctrl</kbd> <kbd>D</kbd></span> / <span class="kbd-group"><kbd>Ctrl</kbd> <kbd>U</kbd></span> – Scroll half a page down or up.

## Contextual shortcuts

Some shortcuts apply to a specific item, such as a file or a comment thread. You can target an item in two ways: hover over it with the mouse or place the keyboard cursor on it. With shortcut hints enabled, contextual hints appear only for the current target.

On a diff line, press <span class="kbd-group"><kbd>Shift</kbd> <kbd>C</kbd></span> to comment on that line or <span class="kbd-group"><kbd>Shift</kbd> <kbd>R</kbd></span> to mark the file as reviewed.

<img src="/images/screenshots/docs/diff-pointer.png" alt="The pointer over an added line, with Shift C beside the gutter button and Shift R beside Mark as reviewed" width="649">

In a thread, press <span class="kbd-group"><kbd>Shift</kbd> <kbd>C</kbd></span> to reply or <span class="kbd-group"><kbd>Shift</kbd> <kbd>S</kbd></span> to resolve it.

<img src="/images/screenshots/docs/discussion-cursor.png" alt="The cursor beside a discussion comment, with shortcut hints on the comment menu, reply field, and Resolve button" width="630">

## Shortcut patterns

Shortcuts often use a letter from the control's name and follow a few patterns:

- **Navigation and menus:** A single letter, such as <kbd>C</kbd> to see changes.
- **Direct actions:** <kbd>Shift</kbd> plus a letter, such as <span class="kbd-group"><kbd>Shift</kbd> <kbd>D</kbd></span> to mark an inbox item as Done.
- **Tabs:** Common browser shortcuts, such as <span class="kbd-group"><kbd>Ctrl</kbd> <kbd>Tab</kbd></span> to switch tabs.
- **Text fields:** <kbd data-linux="Ctrl">Cmd</kbd> combined with another key, such as <span class="kbd-group"><kbd data-linux="Ctrl">Cmd</kbd> <kbd>P</kbd></span> to show comment preview.
