@@ -16,26 +16,26 @@ The default bindings are defined in the source code
16
16
[ here] ( https://github.com/lukasbach/react-complex-tree/blob/main/packages/core/src/hotkeys/defaultKeyboardBindings.ts ) .
17
17
:::
18
18
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 ` | |
34
34
35
35
## Keyboard-bound Drag-and-Drop sequences
36
36
37
37
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
39
39
to select a target location. Moving the focus to a different tree with Tab is also possible. To complete the drop,
40
40
the hotkey ` completeProgrammaticDnd ` (` ENTER ` ) needs to be pressed. The drag can also be aborted with the hotkey
41
41
` abortProgrammaticDnd ` (` ESCAPE ` ).
0 commit comments