Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix: tiptap changed the shortcut for strikethrough
It is ctrl-shift-s now.

Signed-off-by: Max <[email protected]>
  • Loading branch information
max-nextcloud committed Aug 21, 2023
commit 666db9fcb912c152a9bee46364e9112c565b61ce
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