Skip to content

Keyboard shortcuts with active caps lock #2426

Description

@mejo-

What problem are you facing?

With caps lock active, keyboard shortcuts witch character keys like Ctrl-B don't work.

What’s the solution you would like to see?

Shortcuts with letters should work when caps lock is active.

This should be as easy as adding e.g. 'Mod-B': toggleMark(type), to the object returned by keys({ type }) in the relevant marks. I can prepare a pull request if you agree that this is desirable.

Unfortunately, due to the way prosemirror catches keyboard shortcuts, this also implies that Ctrl-Shift-b will toggle bold - which is an acceptable tradeoff in my eyes.

I also checked other online editors (notion.so, google docs, ...) and for most of them, keyboard shortcuts with active caps lock work.

What alternatives did you consider?

We got a bug report against the Nextcloud Text app that asks for this feature: nextcloud/text#2050

I wouldn't mind implementing the extra needed shortcuts there, but thought it might be interesting for Tiptap in general 😊

Anything to add? (optional)

No response

Are you sponsoring us?

  • Yes, I’m a sponsor. 💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions