@cubone/react-file-manager 1.8.0 → 1.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -17,6 +17,7 @@ An open-source React.js package for easy integration of a file manager into appl
17
17
  - **Navigation**: Use the breadcrumb trail and sidebar navigation pane for quick directory traversal.
18
18
  - **Toolbar & Context Menu**: Access all common actions (upload, download, delete, copy, move, rename, etc.) via the toolbar or right-click for the same options in the context menu.
19
19
  - **Multi-Selection**: Select multiple files and folders at once to perform bulk actions like delete, copy, move, or download.
20
+ - **Keyboard Shortcuts**: Quickly perform file operations like copy, paste, delete, and more using intuitive keyboard shortcuts.
20
21
 
21
22
  ![React File Manager](https://github.com/user-attachments/assets/e68f750b-86bf-450d-b27e-fd3dedebf1bd)
22
23
 
@@ -110,6 +111,26 @@ type File = {
110
111
  | `onRename` | (file: [File](#-file-structure), newName: string) => void | A callback function triggered when a file or folder is renamed. |
111
112
  | `width` | string \| number | The width of the component `default: 100%`. Can be a string (e.g., `'100%'`, `'10rem'`) or a number (in pixels). |
112
113
 
114
+ ## ⌨️ Keyboard Shortcuts
115
+
116
+ | **Action** | **Shortcut** |
117
+ | ------------------------------ | ------------------ |
118
+ | New Folder | `Alt + Shift + N` |
119
+ | Upload Files | `CTRL + U` |
120
+ | Cut | `CTRL + X` |
121
+ | Copy | `CTRL + C` |
122
+ | Paste | `CTRL + V` |
123
+ | Rename | `F2` |
124
+ | Download | `CTRL + D` |
125
+ | Delete | `DEL` |
126
+ | Select All Files | `CTRL + A` |
127
+ | Jump to First File in the List | `Home` |
128
+ | Jump to Last File in the List | `End` |
129
+ | Switch to List Layout | `CTRL + Shift + 1` |
130
+ | Switch to Grid Layout | `CTRL + Shift + 2` |
131
+ | Refresh File List | `F5` |
132
+ | Clear Selection | `Esc` |
133
+
113
134
  ## 🤝 Contributing
114
135
 
115
136
  Contributions are welcome! To contribute: