Skip to content

Commit 641faab

Browse files
committed
fix: tiptap changed the shortcut for strikethrough
It is ctrl-shift-s now. Signed-off-by: Max <[email protected]>
1 parent b23d4d7 commit 641faab

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

cypress/e2e/shortcuts.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ describe('keyboard shortcuts', () => {
6161
it('bold', () => testShortcut('{ctrl}b', 'strong'))
6262
it('italic', () => testShortcut('{ctrl}i', 'em'))
6363
it('underline', () => testShortcut('{ctrl}u', 'u'))
64-
it('strikethrough', () => testShortcut('{ctrl}{shift}x', 's'))
64+
it('strikethrough', () => testShortcut('{ctrl}{shift}s', 's'))
6565
it('blockquote', () => testShortcut('{ctrl}{shift}b', 'blockquote'))
6666
it('codeblock', () => testShortcut('{ctrl}{alt}c', 'pre'))
6767
it('ordered-list', () => testShortcut('{ctrl}{shift}7', 'ol'))

src/components/Menu/entries.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export default [
123123
{
124124
key: 'strikethrough',
125125
label: t('text', 'Strikethrough'),
126-
keyChar: 'x',
126+
keyChar: 's',
127127
keyModifiers: [MODIFIERS.Mod, MODIFIERS.Shift],
128128
icon: FormatStrikethrough,
129129
isActive: 'strike',

0 commit comments

Comments
 (0)