Ctrl+A inside table cell should only select all of the cell's content instead of the whole document.
Describe the bug Ctrl+A usually only selects the current cell content if the user is inside a table instead of selecting the whole document
To Reproduce Steps to reproduce the behavior:
- Create a new table
- Create some cells with text content
- Enter a cell and press Ctrl+A
Expected behavior Only the text inside the cell should be selected.
Server details:
- Nextcloud version: 28.0.4
- PHP Version: 8.3
- Database: PostgreSQL 15
Client details:
- OS: Arch Linux
- Browser: Firefox
- Browser version: 125.0.3
- Device: Desktop
Ctrl+A usually only selects the current cell content if the user is inside a table instead of selecting the whole document
Do you want to select the content of a single cell?
If that was the standard behavior, I would be 100% frustrated.
Usually cells have few content, in such a way it's easy to copy in other ways (like shift arrow)
If I'm using ctrl+A to select all, I expect to select all document. Or at least all table.
Even excel, or Google spreadsheets select the whole table on ctrl+A
And those advanced tables usually have an extra interface, to edit a single cell (as the formula area on excel). Those act as a text input (not a cell) and therefore ctrl+A selects the whole text from this the text input (not the cell).
For example, in excel, if you open a formula and hit ctrl+A, you'll copy the formula text. Not the content inside it.
Because you are not actually selecting the whole cell, but the text inside it.
I think you mean ctrl+A should select the whole table. I'm not sure what I'd expect as a user.
I wouldn't call it a bug. But I agree it would give a slight better experience.
I think you are confusing something: I only want to select the whole cell when I'm already editing the cell. I just checked again and this is exactly how LibreOffice Calc does it (and I guess other software as well). When I only have a cell selected and then press Ctrl+A the whole table should be selected like you said. This is really only about editing cells, as I would expect Ctrl+A to only operate inside the current context which is the cell content and not the whole document or table.
I guess this means there are two issues related to Ctrl+A and tables:
- Select cell content if editing a cell
- Select table if not editing a cell but the table is focussed
Select table if not editing a cell but the table is focussed
To be honest I don't know how this would be possible. How likely is the scenario that the table is focussed without the cursor being in one particular cell?
I'm not sure either, I just wanted to point this out. This issue was meant to be only about selecting cell content.