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

Pressing up/down arrow keys inside a list inside a table moves left/right instead of up/down #4830

Open
shemetz opened this issue Oct 28, 2024 · 2 comments

Comments

@shemetz
Copy link

shemetz commented Oct 28, 2024

Expected behavior.

Arrow keys should behave normally for all cells -- pressing Up should move caret to the cell above

Actual behavior.

When the text selection caret is inside a list which is inside a table cell, pressing Up moves it to the start or end of the previous cell in the table (to the previous cell in the same row, or to the last cell in the previous row)

Steps to reproduce the problem.
  1. Go to https://froala.com/wysiwyg-editor/demo/ for example
  2. Insert a new 2x2 table
  3. Write some text inside each cell, e.g.
. .
aaa bbb
ccc ddd
  1. Select one of the bottom row cells and use the toolbar button to make it an Ordered List
. .
aaa bbb
ccc 1. ddd
  1. Click the space at the start of the cell to place your caret there
. .
aaa bbb
ccc 1. |ddd
  1. Press the Up button, and observe the caret moving to the left:
. .
aaa bbb
ccc| 1. ddd
Editor version.

Latest demo - so presumably 4.3.0

OS.

Mac Sonoma 14.6.1

Browser.

Chrome 129.0.6668.100

Recording.
on_click_up_arrow.mov

Possibly related to #4533

@shemetz
Copy link
Author

shemetz commented Oct 29, 2024

@ilyaskarim Was this closed by mistake? I opened this issue 2 days ago, for the latest version (4.3.0)...

@ilyaskarim ilyaskarim reopened this Oct 29, 2024
@ilyaskarim
Copy link

Hi @shemetz I apologise. Yes this issue was closed by mistake. I have reopened this issue.

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

No branches or pull requests

2 participants