Skip to content

Commit 2ee80b7

Browse files
committed
docs: fix dnd hotkey
1 parent 69ab3f9 commit 2ee80b7

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

packages/docs/docs/guides/keyboard.mdx

+16-16
Original file line numberDiff line numberDiff line change
@@ -16,26 +16,26 @@ The default bindings are defined in the source code
1616
[here](https://github.com/lukasbach/react-complex-tree/blob/main/packages/core/src/hotkeys/defaultKeyboardBindings.ts).
1717
:::
1818

19-
| Interaction | Default Binding | Binding Symbol | Note |
20-
| ---------------------------------------------- | ------------------- | ------------------------- | --------------------------------------------------------------------- |
21-
| Expand Siblings | `CONTROL + *` | `expandSiblings` | Not yet implemented |
22-
| Move focus to first item in tree | `HOME` | `moveFocusToFirstItem` | |
23-
| Move focus to last item in tree | `END` | `moveFocusToLastItem` | |
24-
| Execute primary action for selected items | `ENTER` | `primaryAction` | Calls the `onPrimaryAction` hook provided to the environment. |
25-
| Start renaming focused item | `F2` | `renameItem` | Renaming is completed by submitting the form, i.e. by pressing enter. |
26-
| Abort renaming focused item | `ESCAPE` | `abortRenameItem` | Blurring the input also aborts renaming. |
27-
| Toggle the select-state of the focused item | `CONTROL + SPACE` | `toggleSelectItem` | |
28-
| Abort search and hide the search input | `ESCAPE` or `ENTER` | `abortSearch` | |
29-
| Bring up the search input and focus it | None | `startSearch` | By default, searching can be started by pressing any letter button. |
30-
| Select all items | `CONTROL + A` | `selectAll` | |
31-
| Start keyboard-bound Drag-and-Drop sequence | `CONTROL + D` | `startProgrammaticDnd` | |
32-
| Complete keyboard-bound Drag-and-Drop sequence | `ENTER` | `completeProgrammaticDnd` | |
33-
| Abort keyboard-bound Drag-and-Drop sequence | `ESCAPE` | `abortProgrammaticDnd` | |
19+
| Interaction | Default Binding | Binding Symbol | Note |
20+
| ---------------------------------------------- | -------------------- | ------------------------- | --------------------------------------------------------------------- |
21+
| Expand Siblings | `CONTROL + *` | `expandSiblings` | Not yet implemented |
22+
| Move focus to first item in tree | `HOME` | `moveFocusToFirstItem` | |
23+
| Move focus to last item in tree | `END` | `moveFocusToLastItem` | |
24+
| Execute primary action for selected items | `ENTER` | `primaryAction` | Calls the `onPrimaryAction` hook provided to the environment. |
25+
| Start renaming focused item | `F2` | `renameItem` | Renaming is completed by submitting the form, i.e. by pressing enter. |
26+
| Abort renaming focused item | `ESCAPE` | `abortRenameItem` | Blurring the input also aborts renaming. |
27+
| Toggle the select-state of the focused item | `CONTROL + SPACE` | `toggleSelectItem` | |
28+
| Abort search and hide the search input | `ESCAPE` or `ENTER` | `abortSearch` | |
29+
| Bring up the search input and focus it | None | `startSearch` | By default, searching can be started by pressing any letter button. |
30+
| Select all items | `CONTROL + A` | `selectAll` | |
31+
| Start keyboard-bound Drag-and-Drop sequence | `CONTROL + SHIFT +D` | `startProgrammaticDnd` | |
32+
| Complete keyboard-bound Drag-and-Drop sequence | `ENTER` | `completeProgrammaticDnd` | |
33+
| Abort keyboard-bound Drag-and-Drop sequence | `ESCAPE` | `abortProgrammaticDnd` | |
3434

3535
## Keyboard-bound Drag-and-Drop sequences
3636

3737
Drag and Drop is also controllable via keyboard. This sequence can be started by pressing the
38-
hotkey `startProgrammaticDnd` which is `CONTROL + D` by default. Then, the user can press the up or down keys
38+
hotkey `startProgrammaticDnd` which is `CONTROL + SHIFT + D` by default. Then, the user can press the up or down keys
3939
to select a target location. Moving the focus to a different tree with Tab is also possible. To complete the drop,
4040
the hotkey `completeProgrammaticDnd` (`ENTER`) needs to be pressed. The drag can also be aborted with the hotkey
4141
`abortProgrammaticDnd` (`ESCAPE`).

0 commit comments

Comments
 (0)