Skip to content

Commit 352c8e7

Browse files
fix: List item shortcuts (#528)
* Fixed list item shortcuts * Updated test screenshots
1 parent 5e94a75 commit 352c8e7

File tree

6 files changed

+4
-4
lines changed

6 files changed

+4
-4
lines changed

packages/core/src/blocks/ListItemBlockContent/BulletListItemBlockContent/BulletListItemBlockContent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const BulletListItemBlockContent = createStronglyTypedTiptapNode({
3737
addKeyboardShortcuts() {
3838
return {
3939
Enter: () => handleEnter(this.editor),
40-
"Mod-Shift-7": () =>
40+
"Mod-Shift-8": () =>
4141
this.editor.commands.BNUpdateBlock(this.editor.state.selection.anchor, {
4242
type: "bulletListItem",
4343
props: {},

packages/core/src/blocks/ListItemBlockContent/NumberedListItemBlockContent/NumberedListItemBlockContent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ const NumberedListItemBlockContent = createStronglyTypedTiptapNode({
5252
addKeyboardShortcuts() {
5353
return {
5454
Enter: () => handleEnter(this.editor),
55-
"Mod-Shift-8": () =>
55+
"Mod-Shift-7": () =>
5656
this.editor.commands.BNUpdateBlock(this.editor.state.selection.anchor, {
5757
type: "numberedListItem",
5858
props: {},

packages/react/src/slashMenuItems/defaultReactSlashMenuItems.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@ const extraFields: Record<
4949
group: "Basic blocks",
5050
icon: <RiListOrdered size={18} />,
5151
hint: "Used to display a numbered list",
52-
shortcut: formatKeyboardShortcut("Mod-Alt-7"),
52+
shortcut: formatKeyboardShortcut("Mod-Shift-7"),
5353
},
5454
"Bullet List": {
5555
group: "Basic blocks",
5656
icon: <RiListUnordered size={18} />,
5757
hint: "Used to display an unordered list",
58-
shortcut: formatKeyboardShortcut("Mod-Alt-9"),
58+
shortcut: formatKeyboardShortcut("Mod-Shift-8"),
5959
},
6060
Paragraph: {
6161
group: "Basic blocks",
223 Bytes
Loading
109 Bytes
Loading
414 Bytes
Loading

0 commit comments

Comments
 (0)