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)
(earliest affected) rc
Hardware: Other All
: medium normal
Assignee: Not Assigned
: 93500 (view as bug list)
Depends on:
Blocks: Find&Replace-Dialog
  Show dependency treegraph
Reported: 2015-02-23 00:28 UTC by Jim Avera
Modified: 2019-06-28 00:46 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


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).


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


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


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, 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 (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

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:

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.

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