ueberdosis/tiptap

[Bug]: Cmd+Shift+B should not trigger bold - and same for the other marks

Nantris opened this issue · 5 comments

Which packages did you experience the bug in?

bold

What Tiptap version are you using?

2.0.0

What’s the bug you are facing?

The hotkeys for triggering marks should be limited to exactly the keys specified and not trigger in response to additional keys like Shift.

Same for italics, underline, and perhaps more.

What browser are you using?

Chrome on Linux (so specifically using ctrl, not cmd)

Code example

https://tiptap.dev/api/marks/bold

What did you expect to happen?

Cmd+Shift+B or Ctrl+Shift+B should do nothing - but instead they add bold.

Anything to add? (optional)

This also interferes with the blockquote extension's default hotkeys of Cmd+Shift+B: https://tiptap.dev/api/nodes/blockquote

Did you update your dependencies?

  • Yes, I’ve updated my dependencies to use the latest version of all packages.

Are you sponsoring us?

  • Yes, I’m a sponsor. 💖

I also faced this issue, the workaround I used here is to explicitly make Ctrl+Shift+B no operation.

+1, faced the same issue

It appears to also be the cause behind this issue: #4005 - and I assume others.

There seems to be no way to work around this besides to tap into ProseMirror which seems like extreme overkill.

@bdbch or @svenadlung could we get this added to the roadmap for TipTap 2.2.0?

I've created #4111 to track the related hotkey failures that affect TipTap by default.

@fbolcic pinging you specifically because you're the only person who reacted but is not subscribed.