Skip to content

Standardize shortcuts #415

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const BulletListItemBlockContent = createTipTapBlock<"bulletListItem", true>({
addKeyboardShortcuts() {
return {
Enter: () => handleEnter(this.editor),
"Mod-Shift-7": () =>
"Mod-Shift-8": () =>
this.editor.commands.BNUpdateBlock<{
bulletListItem: BlockSpec<
"bulletListItem",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const NumberedListItemBlockContent = createTipTapBlock<
addKeyboardShortcuts() {
return {
Enter: () => handleEnter(this.editor),
"Mod-Shift-8": () =>
"Mod-Shift-7": () =>
this.editor.commands.BNUpdateBlock<{
numberedListItem: BlockSpec<
"numberedListItem",
Expand Down
4 changes: 2 additions & 2 deletions packages/react/src/SlashMenu/defaultReactSlashMenuItems.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ const extraFields: Record<
group: "Basic blocks",
icon: <RiListOrdered size={18} />,
hint: "Used to display a numbered list",
shortcut: formatKeyboardShortcut("Mod-Alt-7"),
shortcut: formatKeyboardShortcut("Mod-Shift-7"),
},
"Bullet List": {
group: "Basic blocks",
icon: <RiListUnordered size={18} />,
hint: "Used to display an unordered list",
shortcut: formatKeyboardShortcut("Mod-Alt-9"),
shortcut: formatKeyboardShortcut("Mod-Shift-8"),
},
Paragraph: {
group: "Basic blocks",
Expand Down