mirror of
https://github.com/wekan/wekan.git
synced 2026-11-20 09:45:04 -05:00
They act on the opened card, or on the hovered or selected minicard, which is opened first, as the d due date shortcut does. Like d, they do not open the popup themselves: client/lib/cardMenuHotkey.js clicks the opened card's hamburger menu and then its Move Card or Copy Card item, so the menu's permissions decide - Move Card for board admins, Copy Card for everyone who is not a Worker. A menu without the item is closed again. Shift keeps them apart from m (assign yourself) and c (archive). The keyboard shortcuts list names them with the already translated popup titles, and docs/Features/General/Keyboard-Shortcuts lists the opened card's shortcuts. findOpenedCardDetails() is shared from client/lib/dueDateHotkey.js. tests/cardMenuKeyboardShortcut.test.cjs drives the DOM logic, including a menu without the item, another opened card and a stray element, and tests/playwright/specs/move-copy-keyboard-shortcut-6904.e2e.js presses the keys, with shortcuts off, while typing, and as a non-admin member. User-defined shortcuts, the question in the issue, are not part of this. Thanks to mimZD and xet7 ! Fixes #6904.