---
title: "List Keymap extension"
description: "Add extra keymap handlers to change the default backspace and delete behavior for lists. Learn more in our docs!"
---

> This page is for Tiptap 2.x. [See the latest version of this page.](https://tiptap.dev/docs/editor/extensions/functionality/listkeymap.md)

# List Keymap extension

Add extra keymap handlers to change the default backspace and delete behavior for lists. Learn more in our docs!

The List Keymap extension modifies the default ProseMirror and Tiptap behavior. Without this extension, pressing backspace at the start of a list item keeps the list item content on the same line. With the List Keymap, the content is lifted into the list item above.

> **Interactive demo:** [ListKeymap](https://v2--tiptap-embed.netlify.app/preview/Extensions/ListKeymap)

## Install

```bash
npm install @tiptap/extension-list-keymap
```

## Settings

### listTypes

An array of list items and their parent wrapper node types.

```js
ListKeymap.configure({
  listTypes: [
    {
      itemName: 'taskItem',
      wrapperNames: ['customTaskList'],
    },
  ],
})
```

Default value:

```json
[
  {
    "itemName": "listItem",
    "wrapperNames": ["bulletList", "orderedList"]
  },
  {
    "itemName": "taskItem",
    "wrapperNames": ["taskList"]
  }
]
```

## Source code

[packages/extension-list-keymap/](https://github.com/ueberdosis/tiptap/blob/main/packages/extension-list-keymap/)
