Skip to content

Commit 9df00e9

Browse files
committed
Fix indent/outdent hotkey; update docs
1 parent c12c5e6 commit 9df00e9

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/ToolbarPlugin.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -524,11 +524,12 @@ export class ToolbarPlugin extends Plugin {
524524
const hasMod = e.metaKey;
525525
const hasShift = e.shiftKey;
526526

527-
if (hasCtrl && e.key === 'l') {
527+
console.log('e.key', e.key);
528+
if (hasCtrl && e.key === '.') {
528529
indentListSelection(this.view.state, this.view.dispatch);
529530
return true;
530531
}
531-
if (hasCtrl && e.key === 'h') {
532+
if (hasCtrl && e.key === ',') {
532533
outdentListSelection(this.view.state, this.view.dispatch);
533534
return true;
534535
}

src/demoDocs.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@ You can also see a legend for many of these hotkeys in the alt text of the toolb
4848

4949
- `cmd + y` / `ctrl + y` is redo
5050

51+
- `ctrl + .` is indent
52+
53+
- `ctrl + ,` is outdent
54+
5155
## Formatting macros
5256

5357
- smart curly quote and apostrophe substitution
@@ -87,5 +91,3 @@ Scratch is a work in progress. I have a running list of things I’d like to add
8791
1. tables, or something like them
8892

8993
1. syntax highlighting and one-click copy-to-clipboard for code blocks
90-
91-
1. nested lists, with full support for markdown formatting within list items

0 commit comments

Comments
 (0)