- The General/ level is gone: its 109 files moved up into the folders of the same name, and its topic table is the "Shared topics" section of Features.md. - Accessibility is one folder, docs/Features/Accessibility/, with the Admin Panel's accessibility page in it. - Every folder's main page is README.md (110 X/X.md pages renamed with git mv, five merged with an existing README.md, 26 index pages added for folders that had none), so a folder opened on GitHub shows its page. - The 73 "# Moved" forwarding pages are deleted, with the folders that held only them; every link that went to one goes to its final page. - docs/Features/README.md has the website's "Features in WeKan" overview, each feature linking to its page here. 1,129 Markdown links in 262 files and 352 doc paths in code, tests, compose, snap and release files follow. tests/docsFeaturesLayout.test.cjs fails when General/ or a "# Moved" page comes back, a folder has no README.md, or a relative link in the docs or README.md does not resolve. Thanks to xet7 !
Keyboard Shortcuts
What it is
WeKan has many keyboard shortcuts for fast, mouse-free use: one key opens the sidebar, filters your cards, adds you to the card, moves it to the Archive and so on. They are on by default for every user and each user can turn them off.
Read more
- Keyboard shortcut on Wikipedia.
- hotkeys-js, the library WeKan uses to bind the keys.
- Accessibility — keyboard navigation, focus, and screen-reader support.
How to use it
See the list.
- Press
?anywhere in WeKan to open the list of keyboard shortcuts. - Or open a board's right sidebar and click Keyboard shortcuts at its top. (An older version of this page said there is also a button at the bottom right corner; current WeKan has it at the top of the board sidebar.)
Turn them on or off. In the board's right sidebar, click the tick (or the ban sign) beside Keyboard shortcuts. Its title says Keyboard shortcuts enabled. Click to disable. or Keyboard shortcuts disabled. Click to enable.
Shortcuts on a board (the list ? shows, from client/lib/keyboard.js):
| Key | Action |
|---|---|
w |
Toggle Board Sidebar |
q |
Filter my cards |
a |
Filter my assigned cards |
n |
Add Card to Bottom of List |
f |
Toggle Filter Sidebar |
/ |
Toggle Search Sidebar |
x |
Clear all filters |
? |
Bring up this shortcuts list |
Esc |
Close Dialog |
@ |
Autocomplete members |
Space |
Add yourself to current card |
m |
Assign yourself to current card |
1-9 |
Toggle labels 1-9 for card. Multi-Selection adds labels 1-9 |
Shift + 1-9 |
Multi-Selection removes labels 1-9 |
Ctrl + Alt + 1-9 |
Toggle assignees 1-9 for card (by order of addition to board) |
Up, Down |
Open the previous or next card when a card is open |
Ctrl + z (Cmd + z) |
Undo, see Undo / Redo |
Ctrl + y, Ctrl + Shift + z (Cmd + Shift + z) |
Redo |
Opened card. These act on the opened card, or on the hovered or selected minicard when no card is open:
| Key | Action |
|---|---|
d |
Edit the due date |
Shift + m |
Move Card (#6904) |
Shift + c |
Copy Card (#6904) |
c, - (and ÷) |
Move the card to the Archive |
Move Card and Copy Card open the same popups as the card's menu, so they are there only for those who have them in that menu: Move Card for board admins, Copy Card for everyone who is not a Worker. The popups open on the board, swimlane and list chosen last time.
How the numbers are calculated
The number keys 1-9 pick the board's labels in their order on the board
(label n is board.labels[n - 1]; a number larger than the number of labels
does nothing), and Ctrl + Alt + 1-9 the board's members in the order
they were added. Labels and assignees change only for a board member. There are
no other numbers.
How it works in WeKan
- client/lib/keyboard.js binds every key
with
hotkeys()and lists them for the?page (Template.keyboardShortcuts, drawn by client/components/main/keyboardShortcuts.jade). hotkeys.filterlets a key through only when the user has shortcuts on (isKeyboardShortcuts()in models/users.js,profile.keyboardShortcuts, defaulttrue), nothing is selected as text, and the focus is not in an editable field, input, select or text area.Escis always handled. A focused control keeps the keys it uses itself.- Keys typed on a non-Latin keyboard layout are re-dispatched once, so they work on any layout.
- The due date, Move Card and Copy Card keys use client/lib/dueDateHotkey.js and client/lib/cardMenuHotkey.js.
- The sidebar buttons are
js-shortcutsandjs-keyboard-shortcuts-togglein client/components/sidebar/sidebar.jade. - Tests: tests/cardMenuKeyboardShortcut.test.cjs, tests/cardShortcutPopup.test.cjs, tests/dueDateKeyboardShortcut.test.cjs, tests/keyboardEventTarget.test.cjs, tests/keyboardNonLatinOnce.test.cjs.
Commits
- Card shortcuts open only their popup
- Shift+M for Move Card and Shift+C for Copy Card
- Shortcuts run once on a non-Latin layout
- Shortcuts keep working after a click on a minicard or a closed popup
- d opens the Due date editor of a card that is still opening
- Shortcuts on for new users, and d on a hovered card
- Shift shortcuts run once
- The d shortcut for the Due date editor
- Filter keyboard events against the focused control
- Undo and redo for moves from the keyboard
- Replace mousetrap with hotkeys-js
- Assignee keys toggle only current board members
- Change the shortcut help message
