https://bugs.freedesktop.org/show_bug.cgi?id=87686
Bug ID: 87686 Summary: UI: Unwanted Entry and Key field repopulation behavior in Insert Index Entry dialog box when it loses and regains focus. Product: LibreOffice Version: 4.3.5.2 release Hardware: x86 (IA32) OS: Windows (All) Status: UNCONFIRMED Severity: normal Priority: medium Component: Writer Assignee: libreoffice-bugs@lists.freedesktop.org Reporter: petercraigmar...@gmail.com [This bug was partially described in Bug 43530, which covered more than one distinct issue.] *** SUMMARY *** When creating alphabetical index entries in LibreOffice Writer, if the Insert Index Entry dialog box loses focus (to the document or another application), when the dialog box regains focus: * manually typed or changed Entry data is abandoned and replaced by currently highlighted text in the document; and * manually typed or changed 1st and 2nd Key data is abandoned and replaced by the keys used for the previously inserted index entry. *** EXAMPLE *** [This example is purely for the sake of illustrating the bug, not for illustrating good indexing practices.] SAMPLE DOCUMENT TEXT: >From a functional, if not formal, perspective, the "Hexagon" has a national single-payer health insurance system. Switzerland uses a cantonal non-profit all-payer system. STEPS TO REPRODUCE BUG: Index Entry 1: (1) In the document, select "Hexagon". (2) Do Insert > Indexes and Tables > Entry and use the default Alphabetical Index. (3) In the Entry field type "France". (4) In the 1st Key field type "Single-Payer". (5) In the 2nd Key field type "National". (6) Don't click "Insert" yet. Instead, click on the document's scroll bar or switch to an open browser. (If this had been a real document, you might have wanted to scroll up in the document or do a Web search to double-check that "Hexagon" does in fact refer to France.) The word "Hexagon" remains selected in the document, since you haven't clicked inside the document itself, but the Insert Index Entry dialog box has lost focus. (7) Click on the titlebar of the Insert Index Entry dialog box. The dialog box regains focus and the Entry you typed, "France", is gone, replaced by the selected text in the document, "Hexagon". The 1st and 2nd Keys remain unchanged, because this is your first index entry of this LibreOffice Writer session. (8) Retype "France" in the Entry field and click "Insert". Entry 2: (9) In the document, select "Switzerland". (10) Click on the titlebar of the Insert Index Entry dialog box. The Entry field is automatically populated with the word selected in the document, "Switzerland". (11) In the 1st Key field type "All-Payer". (12) In 2nd Key field type "Regional (state, provincial, cantonal, etc.)". (13) Don't click "Insert" yet. Instead, click on the document's scrollbar or switch to an open browser. (If this had been a real document, you might have wanted to scroll up in the document or do a Web search to double-check some aspect of Switzerland's health insurance system.) The word "Switzerland" remains selected in the document, since you haven't clicked inside the document itself, but the Insert Index Entry dialog box has lost focus. (14) Click on the titlebar of the Insert Index Entry dialog box in preparation for clicking on "Insert". The Entry repopulates with the currently selected word in the document, "Switzerland", which is fine because you didn't need to manually change it. However, the 1st Key repopulates with "Single-Payer" and the 2nd Key repopulates with "National", which are the keys for the previous entry ("France"), even though you had entered "All-Payer" and "Regional (state, provincial, cantonal, etc.)" for the current entry. (15) The bug has been fully demonstrated, but to complete the index entry correctly and appreciate how annoying the bug can be, retype "All-Payer" in the 1st Key field and "Regional (state, provincial, cantonal, etc.) in the 2nd Key field and click "Insert". Now imagine having to watch out for unwanted repopulations and having to retype new entries repeatedly. CONCLUSION This behavior -- reverting to the currently selected word in the document and to the previously-entered indexing keys after the Insert Index Entry dialog box has lost focus -- is easy for users to miss and can easily lead to serious indexing errors. I would propose that any manual modifications to the field entries in the Insert Index Entry dialog box be preserved until a new selection is made in the document or the field entries are manually changed by the user. It's fine to PRE-populate the Entry field with currently selected text and the 1st and 2nd Key fields with the keys used for the previously inserted entry, but not to RE-populate them with those once the user has changed them, just because the Insert Index Entry dialog box has lost focus. -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs