Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix undo in single cell when using tab key #5407

Merged
merged 4 commits into from
Feb 6, 2023
Merged

Fix undo in single cell when using tab key #5407

merged 4 commits into from
Feb 6, 2023

Conversation

KarolDawidziuk
Copy link
Contributor

What is the purpose of this pull request?

Bug fix

Does your PR contain necessary tests?

All patches that change the editor code must include tests. You can always read more
on PR testing,
how to set the testing environment and
how to create tests
in the official CKEditor documentation.

This PR contains

  • Unit tests
  • Manual tests

Did you follow the CKEditor 4 code style guide?

Your code should follow the guidelines from the CKEditor 4 code style guide which helps keep the entire codebase consistent.

  • PR is consistent with the code style guide

What is the proposed changelog entry for this pull request?

* [#4829](https://github.com/ckeditor/ckeditor4/issues/4829): Fix: Undo reverse entire table content instead of single cell.

What changes did you make?

In the tab plugin implementation, the canUndo flag has been set to false in the selectNextCellCommand() function.
Setting it to "true" solved the problem of being able to undo only one cell instead of the entire table when using the Tab key to move between cells.

Which issues does your PR resolve?

Closes #4829.

@jacekbogdanski jacekbogdanski self-assigned this Feb 1, 2023
Copy link
Member

@jacekbogdanski jacekbogdanski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like a good approach 👍🏻

I slightly updated the manual test - we don't really need 3 editors for that simple change and test steps could be simplified.

One request before we go, it looks like unit tests are passing despite reverting your changes. Could you take a look at it?

Copy link
Member

@jacekbogdanski jacekbogdanski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are going to skip unit tests as that issue can be mostly reproduced by using a real keyboard navigation.

@jacekbogdanski jacekbogdanski merged commit 14fe0d1 into master Feb 6, 2023
@jacekbogdanski jacekbogdanski deleted the t/4829 branch February 6, 2023 14:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Undo reverse entire table content instead of single cell
2 participants