Skip to content

Commit

Permalink
fix: tiptap changed the shortcut for strikethrough
Browse files Browse the repository at this point in the history
It is ctrl-shift-s now.

Signed-off-by: Max <[email protected]>
  • Loading branch information
max-nextcloud committed Aug 21, 2023
1 parent fd54a74 commit 666db9f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/shortcuts.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ describe('keyboard shortcuts', () => {
it('bold', () => testShortcut('{ctrl}b', 'strong'))
it('italic', () => testShortcut('{ctrl}i', 'em'))
it('underline', () => testShortcut('{ctrl}u', 'u'))
it('strikethrough', () => testShortcut('{ctrl}{shift}x', 's'))
it('strikethrough', () => testShortcut('{ctrl}{shift}s', 's'))
it('blockquote', () => testShortcut('{ctrl}{shift}b', 'blockquote'))
it('codeblock', () => testShortcut('{ctrl}{alt}c', 'pre'))
it('ordered-list', () => testShortcut('{ctrl}{shift}7', 'ol'))
Expand Down
2 changes: 1 addition & 1 deletion src/components/Menu/entries.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export default [
{
key: 'strikethrough',
label: t('text', 'Strikethrough'),
keyChar: 'x',
keyChar: 's',
keyModifiers: [MODIFIERS.Mod, MODIFIERS.Shift],
icon: FormatStrikethrough,
isActive: 'strike',
Expand Down

0 comments on commit 666db9f

Please sign in to comment.