Bug 89573 - Can not type non-breaking space into Find & Replace dialog
Summary: Can not type non-breaking space into Find & Replace dialog
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.4.0.2 rc
Hardware: Other All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 93500 132395 (view as bug list)
Depends on:
Blocks: Find&Replace-Dialog
  Show dependency treegraph
 
Reported: 2015-02-23 00:28 UTC by Jim Avera
Modified: 2024-11-04 09:48 UTC (History)
9 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jim Avera 2015-02-23 00:28:45 UTC
In the Find & Replace dialog, if Control-Shift-Space is typed into the "Search For" or "Replace With" fields, the currently-selected text in the documented is deleted and replaced by a no-breaking space.

This is totally inexplicable behavior, even if Find & Replace does not work with non-breaking spaces for some reason.  When the input focus is in the dialog, keyboard input should not go to the main document.

Typing anything else into the "Search For" box does not replace the currently-selected text in the document with what is typed (as expected).

STEPS TO REPRODUCE:

1. Open a Writer document containing text, or create a new one with text.
2. Control-A (select all)
3. Control-H (open Find & Replace)
4. Click in the "Search For" box
5. Type Control-Shift-Space

ACTUAL RESULTS: 

The selected text in the document disappears, and is replaced by a non-breaking space (use View->Non Printing Chars to see it).

EXPECTED RESULTS:

A non-breaking space should be entered into the search box
Comment 1 raal 2015-02-26 12:52:30 UTC
I can confirm with LO 4.4.0.3, win7
Comment 2 Jean-Baptiste Faure 2015-08-24 20:06:00 UTC
An easier way to search non-breaking space is to search \u00A0 (unicode character). Do not forget to check the Regular Expressions checkbox in Other options in the search & replace dialog.

Best regards. JBF
Comment 3 Buovjaga 2015-09-09 13:03:33 UTC
*** Bug 93500 has been marked as a duplicate of this bug. ***
Comment 4 QA Administrators 2016-09-20 10:29:54 UTC Comment hidden (obsolete)
Comment 5 Jim Avera 2016-09-21 21:17:08 UTC
Confirming bug is still present in 5.2.3.0.0+ (master)
Comment 6 Wolfgang Jäger 2017-02-22 11:42:48 UTC
Bug still present in V5.3.0 Writer.

Similar Bug in V5.3.0 Calc: Entering Shift+Ctrl+Space in 'F&R' (either Search For or Replace With) is resulting in a 'Select All' for the current context in the document. If a cell, a cell range or a multirange is selected in advance, the complete sheet gets selected. If a cell was under editing the complete content of the cell gets selected.
Comment 7 Phil Krylov 2018-06-18 11:11:35 UTC
Confirmed in

Version: 6.0.4.2
Build ID: 9b0d9b32d5dcda91d2f1a96dc04c645c450872bf
CPU threads: 4; OS: Mac OS X 10.9.5; UI render: default; 
Locale: en-US (en.UTF-8); Calc: group
Comment 8 QA Administrators 2019-06-19 02:47:46 UTC Comment hidden (obsolete)
Comment 9 Phil Krylov 2019-06-19 14:14:33 UTC
Confirming the bug is still present in:

Version: 6.3.0.0.beta1
Build ID: a187af327633f5f00363be5131bd21a13e0f1a7b
CPU threads: 4; OS: Mac OS X 10.13.6; UI render: default; VCL: osx; 
Locale: en-US (en_RU.UTF-8); UI-Language: en-US
Calc: threaded
Comment 10 Jim Avera 2019-06-27 23:22:21 UTC
Partially fixed in latest Master: Selected text in the main window is not longer replaced or deleted if Control-Shift-space is typed into the "Find" field of the Search-and-replace dialog.

However, nothing happens at all; a non-breaking space is not entered into the Find field, and you can not search for it typed that way.
Comment 11 Jim Avera 2019-06-27 23:29:03 UTC
Clarification:  A non-breaking space can not be typed using Conrol-Shift-space (the documented way) when entereing Find or Replace fields.  

In those fields Control-Shift-space does nothing at all -- it is silently ignored.

As Jean-Baptiste pointed out, it is possible to use the \u00A0 escape with Regular Expressions enabled, so the underlying search mechanism works.

However users should be able to use the documented way of typeing a non-breaking space (control-shift-space), and should not need to know Unicode encodings or Regex syntax to just search for text which they typed into the document body.

Version: 6.4.0.0.alpha0+
Build ID: f75c2b04785aa05cff3bcd52689feb7400a14e8e
CPU threads: 12; OS: Linux 4.18; UI render: default; VCL: gtk3; 
TinderBox: Linux-rpm_deb-x86_64@86-TDF, Branch:master, Time: 2019-06-15_11:49:26
Locale: en-US (en_US.UTF-8); UI-Language: en-US
Calc: threaded
Comment 12 Regina Henschel 2020-04-25 13:31:31 UTC
*** Bug 132395 has been marked as a duplicate of this bug. ***
Comment 13 Safeer Pasha 2021-03-01 08:20:15 UTC
the F$R dialog box does not show anything when I press "CTRL ALT Space" "narrow_no_break_space" U+202F

Version: 7.1.0.3 / LibreOffice Community
Build ID: 10(Build:3)
CPU threads: 4; OS: Linux 5.10; UI render: default; VCL: kf5
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 14 QA Administrators 2023-03-02 03:25:25 UTC Comment hidden (obsolete)
Comment 15 Jim Avera 2023-03-03 19:22:36 UTC
The remaining bug (can't use documented way to type nb-space into search box) still exists in recent master.

Revised STEPS TO REPRODUCE:

1.  Create a writer document with some text containing both regular and non-breaking spaces
      For example, type 

    "Hello Beautiful<CTL-SHIFT-SPACE><CTL-SHIFT-SPACE><CTL-SHIFT-SPACE>World!"

2. View->Formatting Marks (checked)

   You should see a blue dot for the regular space, and white spaces for the non-breaking spaces entered using <CTL-SHIFT-SPACE>.

3. Edit->Find and Replace (or ^H)
   
   Put cursor in "Find:" fields and type <CTL-SHIFT-SPACE>

RESULTS: Nothing happens, no text is entered and you can't search for it.

EXPECTED RESULTS: <CTL-SHIFT-SPACE> should enter a non-breaking space.

NOTE: As mentioned by Jean-Baptiste it is possible to enter the hex Unicode code point and successfully search for non-breaking spaces, so the underlying machinery handles this correctly -- it is a problem with keyboard input.


Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 16a35542aa07ed69c6c699d1c17f076d87708958
CPU threads: 12; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 16 BDF 2024-09-23 12:49:27 UTC
Looks like this is related to Issue #162050 ([Feature Request] Writer: Fuzzy search for regular, non-breaking, soft hyphen and space)

https://bugs.documentfoundation.org/show_bug.cgi?id=162050