You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Keyboard copy, cut and paste skip the checks of the matching actions #3918
I understand this is a bug report and questions should be posted in the Community Discussions
I searched issues and couldn’t find anything (or linked relevant results below)
Bug Description
Ctrl+C, Ctrl+X and Ctrl+V skip the isVisible/isDisabled checks of the matching file actions. web-app-files/src/composables/keyboardActions/useKeyboardFileActions.ts (Spaces overview, Favorites, Search) and useKeyboardFileSpaceActions.ts only check for vaults, so spaces, items without the needed permission and read-only targets go to the clipboard or get pasted. The server rejects them and a failure toast appears.
Fix: run the same checks as the context menu actions (useFileActionsCopy, cut/move, useFileActionsPaste) before copying, cutting or pasting.
Reproduction Steps
Select a space in the Spaces overview, press Ctrl+C, open a folder and press Ctrl+V.
Copy a file, open a read-only share and press Ctrl+V.
Select an item without move permission and press Ctrl+X, then Ctrl+V in another folder.
Expected Outcome
Nothing happens where the context menu doesn't offer the action.
Actual Outcome
COPY /dav/spaces/<space> 400, COPY 403 or MOVE 403, each with a failure toast.
Activity