@brftech/filex-core 0.39.0 → 0.39.1

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
@@ -86,6 +86,9 @@ import {
86
86
  useFileApi, useUploadChunked, useSelection, useKeyboardShortcuts,
87
87
  useLocale, usePendingOps, useMonacoLoader,
88
88
  preloadEditor, ensureMonaco,
89
+ // naming a key on screen — read the binding, never type it out:
90
+ // shortcuts are remappable, so a hardcoded "Ctrl+K" stops being true
91
+ shortcutHint, eventMatchesShortcut,
89
92
  // types
90
93
  type ExplorerConfig, type AuthConfig, type FileNode, type ShareInfo,
91
94
  type Capabilities,
@@ -95,6 +98,12 @@ import {
95
98
  The composables are stable — feel free to compose your own UI without
96
99
  touching the SFC.
97
100
 
101
+ If your own UI names a keyboard shortcut, render `shortcutHint('<action>')`
102
+ rather than the key itself: the user may remap any action from the shortcut
103
+ settings, and `''` comes back for one they unbound so you can drop the hint
104
+ instead of drawing an empty key cap. See
105
+ [docs/API.md](https://github.com/BRF-Tech/filex/blob/main/docs/API.md#naming-a-key-on-screen).
106
+
98
107
  ### Navigation panel
99
108
 
100
109
  The explorer ships a left navigation panel — a prominent **Upload**, the views