File tree Expand file tree Collapse file tree 3 files changed +44
-0
lines changed
block-editor/src/components/keyboard-shortcuts
edit-post/src/components/keyboard-shortcut-help-modal/test/__snapshots__ Expand file tree Collapse file tree 3 files changed +44
-0
lines changed Original file line number Diff line number Diff line change @@ -219,6 +219,11 @@ This is the canonical list of keyboard shortcuts:
219219 <td><kbd>Esc</kbd></td>
220220 <td><kbd>Esc</kbd></td>
221221 </tr>
222+ <tr>
223+ <td>Select text across multiple blocks.</td>
224+ <td></td>
225+ <td><kbd>Shift</kbd>+<kbd>Arrow (⇦, ⇧, ⇨, ⇩)</kbd></td>
226+ </tr>
222227 </tbody>
223228</table >
224229
Original file line number Diff line number Diff line change @@ -93,6 +93,16 @@ function KeyboardShortcutsRegister() {
9393 } ,
9494 } ) ;
9595
96+ registerShortcut ( {
97+ name : 'core/block-editor/multi-text-selection' ,
98+ category : 'selection' ,
99+ description : __ ( 'Select text across multiple blocks.' ) ,
100+ keyCombination : {
101+ modifier : 'shift' ,
102+ character : 'arrow' ,
103+ } ,
104+ } ) ;
105+
96106 registerShortcut ( {
97107 name : 'core/block-editor/focus-toolbar' ,
98108 category : 'global' ,
Original file line number Diff line number Diff line change @@ -272,6 +272,35 @@ exports[`KeyboardShortcutHelpModal should match snapshot when the modal is activ
272272 </kbd >
273273 </div >
274274 </li >
275+ <li
276+ class = " edit-post-keyboard-shortcut-help-modal__shortcut"
277+ >
278+ <div
279+ class = " edit-post-keyboard-shortcut-help-modal__shortcut-description"
280+ >
281+ Select text across multiple blocks.
282+ </div >
283+ <div
284+ class = " edit-post-keyboard-shortcut-help-modal__shortcut-term"
285+ >
286+ <kbd
287+ aria-label = " Shift + Arrow"
288+ class = " edit-post-keyboard-shortcut-help-modal__shortcut-key-combination"
289+ >
290+ <kbd
291+ class = " edit-post-keyboard-shortcut-help-modal__shortcut-key"
292+ >
293+ Shift
294+ </kbd >
295+ +
296+ <kbd
297+ class = " edit-post-keyboard-shortcut-help-modal__shortcut-key"
298+ >
299+ Arrow
300+ </kbd >
301+ </kbd >
302+ </div >
303+ </li >
275304 </ul >
276305 </section >
277306 <section
You can’t perform that action at this time.
0 commit comments