Bug 120917 - Tab key at the beginning of heading has strange and inconsistent effects
Summary: Tab key at the beginning of heading has strange and inconsistent effects
Status: RESOLVED DUPLICATE of bug 146762
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Tab-Character
  Show dependency treegraph
 
Reported: 2018-10-25 17:54 UTC by Kenneth Hanson
Modified: 2024-03-22 16:47 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Document for experimenting with the tab key (11.06 KB, application/vnd.oasis.opendocument.text)
2018-10-25 17:59 UTC, Kenneth Hanson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kenneth Hanson 2018-10-25 17:54:09 UTC
Description:
I discovered this while investigating bug 93495 comment 4.

Pressing the tab key at the beginning of a heading paragraph sometimes changes the heading level as expected, and other times it indents the paragraph. Furthermore, when it indents the paragraph it changes the properties of the style rather than adding a tab stop or direct formatting, and these changes are applied to other heading styles as well. Even this can be inconsistent -- sometimes the other styles are unaffected if they have already been modified from their defaults. Clearly something weird is going on.

This is all in contrast to the "increase indent" toolbar button, which consistently changes the heading level as expected.

Further details:
- As far as I can tell, the strange behavior of the tab key occurs only for the first instance of a heading paragraph, regardless of the heading level.
- The Shift-Tab key combo does nothing in these cases.

Steps to Reproduce:
1. Press tab at the beginning of a heading paragraph.

Actual Results:
Indentation of the relevant heading paragraph style, and other heading paragraph styles, is changed.

Expected Results:
The heading level of the current paragraph is increased.


Reproducible: Always


User Profile Reset: No



Additional Info:
The indentation properties of the relevant heading style, and perhaps other heading styles, are changed if the tab key is pressed at the beginning of the first occurrence of a heading paragraph.
Comment 1 Kenneth Hanson 2018-10-25 17:59:52 UTC
Created attachment 146008 [details]
Document for experimenting with the tab key

Delete, reorder, or reset the style of the headings to see the the main effect occurs only for the first heading paragraph, regardless of heading level. To show how all styles are sometimes not affected, modify the indentation properties of one of the styles and repeat the experiment.
Comment 2 Durgapriyanka 2018-11-20 18:57:06 UTC
I can reproduce the bug.

Version: 6.0.6.2
Build ID: 0c292870b25a325b5ed35f6b45599d2ea4458e77
CPU threads: 2; OS: Windows 6.1; UI render: default; 
Locale: en-US (en_US); Calc: group
Comment 3 Weng Jing-Yao 2018-11-29 08:54:13 UTC
I can reproduce the bug.

Version: 6.3.0.0.alpha0+ (x64)
Build ID: 0f25a3c36f27fd51453b9a9115f236b83c143684
CPU threads: 8; OS: Windows 10.0; UI render: GL; VCL: win; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-11-27_20:06:55
Locale: zh-TW (zh_TW); UI-Language: en-US
Calc: threaded
Comment 4 Su Ming Wei 2018-11-29 09:02:04 UTC
I can reproduce the bug.

版本:6.0.7.3 (x64)
組建 ID:dc89aa7a9eabfd848af146d5086077aeed2ae4a5
CPU 執行緒:8; OS:Windows 10.0; UI 算繪:GL; 
語言地區:zh-TW (zh_TW); Calc: CL
Comment 5 Heiko Tietze 2018-11-29 09:55:46 UTC
QA please decide what to do taking bug 93495 into account.
Comment 6 Dieter 2018-12-22 05:38:05 UTC
(In reply to Heiko Tietze from comment #5)
> QA please decide what to do taking bug 93495 into account.

Heiko, I changed status tio NEW, because - as far as I can understand from bug 93495 - it is the desired result, that tab key should change the heading level. So I don't see, why this bug report is not in line with bug 93495.
Comment 7 Xisco Faulí 2019-01-16 22:09:28 UTC
Also reproduced in

LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 8 QA Administrators 2023-01-08 03:23:37 UTC Comment hidden (obsolete)
Comment 9 Kenneth Hanson 2023-01-10 16:23:42 UTC
Behavior is somewhat different in v7.4.2.3, but still mysterious.

- Tab at the beginning of line inserts a tab stop
- Shift+Tab decreases the heading level for the current paragraph only
- Ctrl+Tab increases the indent (different from both the above) for every heading in the document
Comment 10 Heiko Tietze 2023-01-10 16:43:49 UTC
Some recent changes implemented for bug 146762, see discussion and decision there.
Comment 11 sdc.blanco 2023-01-11 00:38:14 UTC
(In reply to Kenneth Hanson from comment #9)
> Behavior is somewhat different in v7.4.2.3, but still mysterious.
> - Tab at the beginning of line inserts a tab stop
See bug 152594

> - Shift+Tab decreases the heading level for the current paragraph only
> - Ctrl+Tab increases the indent (different from both the above) for every
> heading in the document
Appears to correspond to expected design (per bug 146762)
see: https://help.libreoffice.org/7.4/en-US/text/swriter/04/01020000.html#bm_id3150396
Comment 12 sdc.blanco 2023-02-12 22:01:53 UTC
@Kenneth Hanson maybe you can test the attachments at bug 152594, comment 4 and bug 152594, comment 5. 

Possibly this ticket is a duplicate of bug 152594.
Comment 13 Gabor Kelemen (allotropia) 2024-03-22 16:47:07 UTC
I'd agree this is at this point the original issue was fixed in bug 146762, remaining problem is tracked in bug 152594

*** This bug has been marked as a duplicate of bug 146762 ***