Skip to content

Commit 4e20996

Browse files
guntripmchammer01Omer Bensaadon
authored
Dragging multiple items on a board and keyboard shortcuts (github#37005)
Co-authored-by: mc <[email protected]> Co-authored-by: Omer Bensaadon <[email protected]>
1 parent 314e598 commit 4e20996

File tree

4 files changed

+45
-5
lines changed

4 files changed

+45
-5
lines changed

Diff for: content/get-started/using-github/keyboard-shortcuts.md

+30-4
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,10 @@ If you view a code file in a repository using the **Code** view and click on any
163163
| Keyboard shortcut | Description
164164
|-----------|------------
165165
|<kbd>Command</kbd>+<kbd>f</kbd> (Mac) or <kbd>Ctrl</kbd>+<kbd>f</kbd> (Windows/Linux) | Focus filter field
166-
|<kbd>←</kbd> | Move cell focus to the left
167-
|<kbd>→</kbd> | Move cell focus to the right
168-
|<kbd>↑</kbd> | Move cell focus up
169-
|<kbd>↓</kbd> | Move cell focus down
166+
|<kbd>←</kbd> | Move focus to the left
167+
|<kbd>→</kbd> | Move focus to the right
168+
|<kbd>↑</kbd> | Move focus up
169+
|<kbd>↓</kbd> | Move focus down
170170

171171
### Manipulating a project
172172

@@ -176,11 +176,35 @@ If you view a code file in a repository using the **Code** view and click on any
176176
|<kbd>Escape</kbd> | Cancel editing for the focused cell
177177
|<kbd>Command</kbd>+<kbd>Shift</kbd>+<kbd>\</kbd> (Mac) or <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>\</kbd> (Windows/Linux) | Open row actions menu
178178
|<kbd>Shift</kbd>+<kbd>Space</kbd> | Select item
179+
|<kbd>Shift</kbd>+<kbd>↓</kbd> | Add cell{% ifversion projects-v2-board-keyboard-shorts %} or card{% endif %} below to selection
180+
|<kbd>Shift</kbd>+<kbd>↑</kbd> | Add cell {% ifversion projects-v2-board-keyboard-shorts %}or card{% endif %} above to selection
179181
|<kbd>Space</kbd> | Open selected item
180182
|<kbd>e</kbd> | Archive selected items
181183

184+
{% ifversion projects-v2-board-keyboard-shorts %}
185+
186+
### Moving cards on the board layout
187+
188+
| Keyboard shortcut | Description
189+
|-----------|------------
190+
|<kbd>Enter</kbd> or <kbd>Shift</kbd>+<kbd>Space</kbd> | Start moving the selected card(s)
191+
|<kbd>Esc</kbd> | Cancel the move in progress
192+
|<kbd>Enter</kbd> | Complete the move in progress
193+
|<kbd>↓</kbd> | Move a single card down
194+
|<kbd>Command</kbd>+<kbd>↓</kbd> or </br> <kbd>Ctrl</kbd>+<kbd>↓</kbd> (Windows/Linux) | Move a single card to the bottom of the column
195+
|<kbd>↑</kbd> | Move a single card up
196+
|<kbd>Command</kbd>+<kbd>↑</kbd> (Mac) or </br> <kbd>Ctrl</kbd>+<kbd>↑</kbd> (Windows/Linux) | Move a single card to the top of the column
197+
|<kbd>←</kbd> | Move card(s) left
198+
|<kbd>Command</kbd>+<kbd>←</kbd> (Mac) or </br> <kbd>Ctrl</kbd>+<kbd>←</kbd> (Windows/Linux) | Move card(s) to the leftmost column
199+
|<kbd>→</kbd> | Move card(s) right
200+
|<kbd>Command</kbd>+<kbd>→</kbd> (Mac) or </br> <kbd>Ctrl</kbd>+<kbd>→</kbd> (Windows/Linux) | Move card(s) to the rightmost column
201+
202+
{% endif %}
203+
182204
{% endif %}
183205

206+
{% ifversion projects-v1 %}
207+
184208
## {% data variables.product.prodname_projects_v1_caps %}
185209

186210
### Moving a column
@@ -221,6 +245,8 @@ If you view a code file in a repository using the **Code** view and click on any
221245
|-----------|------------
222246
|<kbd>Esc</kbd> | Close the card preview pane
223247

248+
{% endif %}
249+
224250
{% ifversion fpt or ghec %}
225251
## {% data variables.product.prodname_actions %}
226252

Diff for: data/features/projects-v2-board-drag-multiple.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Issue 10099
2+
# Ability to drag multiple items across columns on the board layout
3+
versions:
4+
fpt: '*'
5+
ghec: '*'
6+
ghes: '>=3.10'

Diff for: data/features/projects-v2-board-keyboard-shorts.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Issue 10099
2+
# Keyboard shortcuts on boards
3+
versions:
4+
fpt: '*'
5+
ghec: '*'
6+
ghes: '>=3.10'

Diff for: data/reusables/projects/about-board-layout.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
The board layout spreads your issues, pull requests, and draft issues across customizable columns. You can create a kanban board by setting your column field to a "Status" field or set any other single select or iteration field as the column field. Moving items from column to column will adjust the value of the column field for that item.
1+
The board layout spreads your issues, pull requests, and draft issues across customizable columns. You can create a kanban board by setting your column field to a "Status" field or set any other single select or iteration field as the column field.
2+
3+
You can drag {% ifversion projects-v2-board-drag-multiple %}individual or multiple items{% else %}items{% endif %} from column to column and the value of {% ifversion projects-v2-board-drag-multiple %}those items{% else %}the item{% endif %} will adjust to match the column you drag them to.

0 commit comments

Comments
 (0)