Giter Club home page Giter Club logo

Comments (6)

UnivocalHoneyBadger avatar UnivocalHoneyBadger commented on July 29, 2024 2

I think the best behaviour would be:
ArrowDown from above the table: cursor goes to first row
ArrowDown/ArrowUp in the table: cursor moves vertically
ArrowUp from below the table: goes to first cell on last row

This is also the behaviour for tables in LibreOffice and Google documents.
I think it's weird for the navigation to change depending on whether you start below or above a table. It's very counter-intuitive.

Regardless of how the behaviour is, I do think it's important the same behaviour is applied to all browsers.

from quill-better-table.

soccerloway avatar soccerloway commented on July 29, 2024

Thanks for your report~ I really neglected this problem.
I have already added handlers for ArrowDown/ArrowUp in 1.2.7.
It should have the same behavior now.

from quill-better-table.

soccerloway avatar soccerloway commented on July 29, 2024

Behavior now:

  1. ArrowDown to table, the cursor will jump to the first cell in first row.
  2. ArrowDown/ArrowUp handles movement of cursor between table rows.

from quill-better-table.

UnivocalHoneyBadger avatar UnivocalHoneyBadger commented on July 29, 2024

Thanks for the good work, however, the behaviour is not quite proper yet. While the selection does not skip to last row anymore. It works in FireFox, but it does behave weirdly in Chrome.

In Chrome it tries to stick to it's default behaviour, when you're on a line below the table and press ArrowUp it will go to the last cell in the table.

Below is a gif of what's happening:
UnQTmv3hcp

from quill-better-table.

soccerloway avatar soccerloway commented on July 29, 2024

�Actually, I made the behavior :)
I think it's good to uniform its behavior no matter in ff or chrome.

Behavior now:
ArrowDown from above to table, the cursor will jump to the first cell in first row.
ArrowDown/ArrowUp handles movement of cursor between table rows.
ArrowUp from below to table, the cursor will jump to the last cell in last row.

I will compare with some other rich-text editors, hope that find a comfortable way.

from quill-better-table.

soccerloway avatar soccerloway commented on July 29, 2024

You are right I think, I will change the behaviour:

ArrowUp from below the table: goes to first cell on last row

from quill-better-table.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.