Skip to content

⏸ [0.7] Remove indentation keyboard shortcuts in RTE set up - #2855

Merged
thegreatercurve merged 3 commits into
mainfrom
bug/remove-tab-indentation-shortcuts
Dec 7, 2022
Merged

thegreatercurve merged 3 commits into
mainfrom
bug/remove-tab-indentation-shortcuts

Conversation

@thegreatercurve

@thegreatercurve thegreatercurve commented Aug 19, 2022 •

Copy link
Copy Markdown
Contributor

Stealing the tab keyboard shortcut prevents users from being able to tab in and out of the editor using TAB or SHIFT+TAB.

We should remove this altogether, so that users don't proactively have to add in plugins to make their editors more accessible.

Fixes #2854

@vercel

vercel Bot commented Aug 19, 2022 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
lexical ✅ Ready (Inspect) Visit Preview Nov 7, 2022 at 0:02AM (UTC)
lexical-playground ✅ Ready (Inspect) Visit Preview Nov 7, 2022 at 0:02AM (UTC)

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 19, 2022
@thegreatercurve
thegreatercurve marked this pull request as ready for review August 19, 2022 15:37
@acywatson

Copy link
Copy Markdown
Contributor

Just to externalize our internal discussion -

This is a breaking change - it will change the behavior of every editor using the rich-text-plugin. If we decide to move forward, we can handle this with a migration path in the documentation, but we need to bump the version to 0.4 for this change.

@acywatson

Copy link
Copy Markdown
Contributor

@thegreatercurve can we include this in 0.4 except just pull the logic you deleted out into a separate plugin that we can offer as a migration path to restore the functionality to rich-text-plugin users?

@GermanJablo

Copy link
Copy Markdown
Contributor

So, do you finally plan to completely remove the command?
I insist, just as I said here #2854
I think it would be nice if it could be optionally enabled.

@Awjin

Awjin commented Sep 3, 2022

Copy link
Copy Markdown
Contributor

@thegreatercurve can we include this in 0.4 except just pull the logic you deleted out into a separate plugin that we can offer as a migration path to restore the functionality to rich-text-plugin users?

+1 preserving the current behavior as a plugin. Correct in/out-denting is one of Lexical's standout features. No other RTE library does this correctly for nested lists.

@acywatson

Copy link
Copy Markdown
Contributor

So, do you finally plan to completely remove the command?
I insist, just as I said here #2854
I think it would be nice if it could be optionally enabled.

Yea, I think we're on the same page. We're just going to make the core stuff optimized for accessibility by default, but have a plugin that people can use to add this behavior and configure their own escape mechanisms for accessibility.

@thegreatercurve
thegreatercurve force-pushed the bug/remove-tab-indentation-shortcuts branch from 086a905 to 3d0b3c3 Compare November 7, 2022 12:00
@thegreatercurve thegreatercurve changed the title Remove indentation keyboard shortcuts in RTE set up [0.7[ Remove indentation keyboard shortcuts in RTE set up Nov 7, 2022
@thegreatercurve thegreatercurve changed the title [0.7[ Remove indentation keyboard shortcuts in RTE set up [0.7] Remove indentation keyboard shortcuts in RTE set up Nov 7, 2022
@thegreatercurve thegreatercurve changed the title [0.7] Remove indentation keyboard shortcuts in RTE set up ⏸ [0.7] Remove indentation keyboard shortcuts in RTE set up Nov 8, 2022
@trueadm

trueadm commented Dec 7, 2022

Copy link
Copy Markdown
Collaborator

Is this going in 0.7?

@thegreatercurve
thegreatercurve merged commit 8cb0c5b into main Dec 7, 2022
@trueadm trueadm mentioned this pull request Dec 9, 2022

This branch was successfully deployed

2 active deployments
Preview – lexical-playground — 3d0b3c3a Deployed Nov 7, 2022 by vercel[bot]
Preview – lexical — 3d0b3c3a Deployed Nov 7, 2022 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: allow rich-text editor Tab-to-Indent to be disabled

6 participants