ContentTools icon indicating copy to clipboard operation
ContentTools copied to clipboard

Can't insert line break with shift+enter in table

Open lubomirblazekcz opened this issue 7 years ago • 3 comments

Line break can be inserted with shift+enter in paragraphs, but the same behaviour is not working in tables (I can insert the line break only with the icon in toolbar).

lubomirblazekcz avatar Mar 09 '17 10:03 lubomirblazekcz

Hi @evromalarkey - that's correct at the moment the shify + enter combo isn't implemented within list items or table divisions. I'd not thought about this before but I think this is probably something we should add as a feature so I'll flag as an enhancement.

In the meantime you can use the line-break tool within the toolbox to insert line-breaks in both list items and table divisions.

anthonyjb avatar Mar 10 '17 19:03 anthonyjb

Hi, this is exactly the kind of behavior I also want. As for now the return key sends you to the next cell, which is a very unexpected behavior for me. An expected behavior would be a new line just as if you were hitting the return key outside the table.

I also strongly believe following behavior would enhance the user experience:

  • If the cursor is in the very first cell, hitting Shift+Tab should focus to the element previous the table. If no previous element; create a paragraph and focus on it. The same behavior should apply if you hit the return key when the cursor is the very first char in the very first cell. This gives you two opportunities to exit the table to an element before the table. As we speak there is no way to insert an element before the table if the table is the first element in an editable area.
  • Hitting the return key from the very last cell; create a new paragraph below the table and focus on it. This is a much easier way to exit the table than using the arrow down key. (Alternative: Actually, I would prefer return key alone gives you a new line and not Shift+Return - this is more like the same behavior as outside the table. If this should be implemented it's OK to use the arrow down to exit the table as it's the only way)

Keep up the amazing work! @anthonyjb

Trinitonn avatar Mar 14 '17 10:03 Trinitonn

Just a follow up;

as I mentioned in my last comment, there is no way to exit a table if the table is the last element in an editable area. I was wrong, it's actually possible by inserting a new header/paragraph by pressing the buttons in the toolbox. Unfortunately i don't find this very intuitive, not that I am complaining :) but, it's not easy to understand for average Joe. I believe we should try to make things as self explaining as possible, and with that in mind there should be other options (like hitting the arrow down key, return key or something like that).

Also please note my previous comment: - "As we speak there is no way to insert an element before the table if the table is the first element in an editable area"

Can we find any good solution for this? (my suggestion was that hitting the SHIFT+TAB keys would insert a new paragraph before the table)

Trinitonn avatar Mar 31 '17 10:03 Trinitonn